Skip to content

Commit eb541e2

Browse files
rbabubgregkh
authored andcommitted
net: stmmac: Clear receive all(RA) bit when promiscuous mode is off
[ Upstream commit 4c7a942 ] 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: e0f9956 ("net: stmmac: Add option for VLAN filter fail queue enable") Signed-off-by: Ramesh Babu B <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 2104e2a commit eb541e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
638638
value &= ~GMAC_PACKET_FILTER_PCF;
639639
value &= ~GMAC_PACKET_FILTER_PM;
640640
value &= ~GMAC_PACKET_FILTER_PR;
641+
value &= ~GMAC_PACKET_FILTER_RA;
641642
if (dev->flags & IFF_PROMISC) {
642643
/* VLAN Tag Filter Fail Packets Queuing */
643644
if (hw->vlan_fail_q_en) {

0 commit comments

Comments
 (0)