]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2b20de56c33b1395ab35d1c41186240144e2e80
tree88942026a6d501881bdfdce17018cda91270a058
parentddabf8376120001af6640d52bb5372dd83eb9640
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: 49417e84b42a ("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