Skip to contentSkip to conversation

bnxt: Fix a bug in broadcast/multicast setting

PATCH Applied Ajit Khaparde 2 participants 2 messages Jul 4, 2016 – Jul 8, 2016 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnxt: Fix a bug in broadcast/multicast setting

Currently we are wrongly setting HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_MCAST flag in bnxt_hwrm_cfa_l2_set_rx_mask() which is preventing promiscuous and multicast promiscuous settings from working correctly. This patch fixes it.

---
 drivers/net/bnxt/bnxt_hwrm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/bnxt/bnxt_hwrm.c +1 -2
index 5d81a60..2ed4c2f 100644
@@ -177,8 +177,7 @@ int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, struct bnxt_vnic_info *vnic)
 		mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS;
 	if (vnic->flags & BNXT_VNIC_INFO_ALLMULTI)
 		mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ALL_MCAST;
-	req.mask = rte_cpu_to_le_32(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_MCAST |
-				    HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST |
+	req.mask = rte_cpu_to_le_32(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST |
 				    mask);
 
 	rc = bnxt_hwrm_send_message(bp, &req, sizeof(req));
Signature · 1 line
2.7.4 (Apple Git-66)
#1 lore raw
Quoted 6 lines · Ajit Khaparde

Currently we are wrongly setting HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_MCAST flag in bnxt_hwrm_cfa_l2_set_rx_mask() which is preventing promiscuous and multicast promiscuous settings from working correctly. This patch fixes it.

Fixes 244bc98b0da7 ("net/bnxt: set L2 Rx mask")

Applied to dpdk-next-net/rel_16_07

/Bruce