mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
net: stmmac: Clear receive all(RA) bit when promiscuous mode is off
[ Upstream commit4c7a94286e] In promiscuous mode Receive All bit is set in GMAC packet filter register, but outside promiscuous mode Receive All bit is not cleared, which resulted in all network packets are received when toggle (ON/OFF) the promiscuous mode. Fixes:e0f9956a38("net: stmmac: Add option for VLAN filter fail queue enable") Signed-off-by: Ramesh Babu B <ramesh.babu.b@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
340de910d6
commit
f551068f5f
@@ -617,6 +617,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
|
||||
value &= ~GMAC_PACKET_FILTER_PCF;
|
||||
value &= ~GMAC_PACKET_FILTER_PM;
|
||||
value &= ~GMAC_PACKET_FILTER_PR;
|
||||
value &= ~GMAC_PACKET_FILTER_RA;
|
||||
if (dev->flags & IFF_PROMISC) {
|
||||
/* VLAN Tag Filter Fail Packets Queuing */
|
||||
if (hw->vlan_fail_q_en) {
|
||||
|
||||
Reference in New Issue
Block a user