From: Ajit Khaparde Date: Thu, 28 Sep 2017 21:43:28 +0000 (-0500) Subject: net/bnxt: fix an issue with broadcast traffic X-Git-Tag: spdx-start~1868 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a01a07286d112e8526facc47e03d10c44ffafd7b;p=dpdk.git net/bnxt: fix an issue with broadcast traffic In bnxt_hwrm_cfa_l2_set_rx_mask, we are ignoring the previous setting of HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST and setting it again, thereby wrongly enabling Broadcast. Fixes: 244bc98b0da7 ("net/bnxt: set L2 Rx mask") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index ceb4ab29bc..ade96278b9 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -280,8 +280,7 @@ int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, rte_mem_virt2phy(vlan_table)); req.num_vlan_tags = rte_cpu_to_le_32((uint32_t)vlan_count); } - req.mask = rte_cpu_to_le_32(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST | - mask); + req.mask = rte_cpu_to_le_32(mask); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req));