Print this page
10320 qede_gld.c uses assignment, means equality

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/qede/qede_gld.c
          +++ new/usr/src/uts/common/io/qede/qede_gld.c
↓ open down ↓ 1157 lines elided ↑ open up ↑
1158 1158                  ret = qede_set_rx_mac_mcast(qede, ECORE_FILTER_ADD, 
1159 1159                      (unsigned char *)mc_macs, mc_cnt);
1160 1160                  if ((qede->params.multi_promisc_fl == B_TRUE) && 
1161 1161                      (qede->params.promisc_fl == B_FALSE)) {
1162 1162                          mode = QEDE_FILTER_RX_MODE_REGULAR;
1163 1163                          ret = qede_set_filter_rx_mode(qede, mode);
1164 1164                  }
1165 1165                  qede->params.multi_promisc_fl = B_FALSE;
1166 1166          } else {
1167 1167                  if ((qede->params.multi_promisc_fl == B_FALSE) && 
1168      -                    (qede->params.promisc_fl = B_FALSE)) {
     1168 +                    (qede->params.promisc_fl == B_FALSE)) {
1169 1169                          ret = qede_set_filter_rx_mode(qede, 
1170 1170                              QEDE_FILTER_RX_MODE_MULTI_PROMISC);
1171 1171                  }
1172 1172                  qede->params.multi_promisc_fl = B_TRUE;
1173 1173                  qede_info(qede, "mode is MULTI_PROMISC");
1174 1174          }
1175 1175  exit:
1176 1176  kmem_free(mc_macs, size);
1177 1177  qede_info(qede, "multicast ret %d mc_cnt %d\n", ret, qede->mc_cnt);
1178 1178  return (ret);
↓ open down ↓ 1384 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX