bnxt_en: Fix incorrect multicast rx mask setting when not requested
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Sun, 20 Feb 2022 09:05:50 +0000 (04:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Feb 2022 13:47:14 +0000 (13:47 +0000)
commit8cdb15924252e27af16c4a8fe0fc606ce5fd04dc
tree88942026a6d501881bdfdce17018cda91270a058
parentcfcab3b3b61584a02bb523ffa99564eafa761dfe
bnxt_en: Fix incorrect multicast rx mask setting when not requested

We should setup multicast only when net_device flags explicitly
has IFF_MULTICAST set. Otherwise we will incorrectly turn it on
even when not asked.  Fix it by only passing the multicast table
to the firmware if IFF_MULTICAST is set.

Fixes: 7d2837dd7a32 ("bnxt_en: Setup multicast properly after resetting device.")
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c