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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:47:54 +0000 (11:47 +0100)
commit86da2e4a1284491d7d22f7b54a2b3131733975e9
tree8c51390f615c332146ed56b02d37b3e37e490c7f
parent24931b4d199e87f74305c32ffd09c525b48b344e
bnxt_en: Fix incorrect multicast rx mask setting when not requested

commit 8cdb15924252e27af16c4a8fe0fc606ce5fd04dc upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c