]> git.itanic.dy.fi Git - linux-stable/commit
net: stmmac: xgmac: fix missing IFF_MULTICAST checki in dwxgmac2_set_filter
authorTan, Tee Min <tee.min.tan@intel.com>
Fri, 7 Feb 2020 07:34:15 +0000 (15:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:37:25 +0000 (04:37 -0800)
commitdb6092e3093e581cb182b2fc44eb5c50b399704b
tree7572cd45da9103bcdbc2d79c800375f1576045cb
parent0e0da07ac785d43679d8972324642520d4771b20
net: stmmac: xgmac: fix missing IFF_MULTICAST checki in dwxgmac2_set_filter

[ Upstream commit 2f633d5820e4ed870f408957322acb9263bce2f4 ]

Without checking for IFF_MULTICAST flag, it is wrong to assume multicast
filtering is always enabled. By checking against IFF_MULTICAST, now
the driver behaves correctly when the multicast support is toggled by below
command:-
  ip link set <devname> multicast off|on

Fixes: 0efedbf11f07a ("net: stmmac: xgmac: Fix XGMAC selftests")
Signed-off-by: Tan, Tee Min <tee.min.tan@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c