]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fix missing IFF_MULTICAST check in dwmac4_set_filter
authorVerma, Aashish <aashishx.verma@intel.com>
Fri, 7 Feb 2020 07:33:54 +0000 (15:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 10:36:21 +0000 (11:36 +0100)
commit11428a7f5a16480a57541d7a8419a083bd3ddcd3
treec024a2790da577867b9b4994cee5d0627ce173eb
parentfcce6e59f521e1ea8b621e78d0c430ff0be05526
net: stmmac: fix missing IFF_MULTICAST check in dwmac4_set_filter

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: 1db7ea351fc7 ("stmmac: add GMAC4 core support")
Signed-off-by: Verma, Aashish <aashishx.verma@intel.com>
Tested-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>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c