Skip to content
Commit db6092e3 authored by Tan, Tee Min's avatar Tan, Tee Min Committed by Greg Kroah-Hartman
Browse files

net: stmmac: xgmac: fix missing IFF_MULTICAST checki in dwxgmac2_set_filter

[ Upstream commit 2f633d58 ]

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: 0efedbf1

 ("net: stmmac: xgmac: Fix XGMAC selftests")
Signed-off-by: default avatarTan, Tee Min <tee.min.tan@intel.com>
Signed-off-by: default avatarOng Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e0da07a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment