Skip to content

Commit 4c7a942

Browse files
rbabubdavem330
authored andcommitted
net: stmmac: Clear receive all(RA) bit when promiscuous mode is off
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]>
1 parent c61760e commit 4c7a942

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
@@ -642,6 +642,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
642642
value &= ~GMAC_PACKET_FILTER_PCF;
643643
value &= ~GMAC_PACKET_FILTER_PM;
644644
value &= ~GMAC_PACKET_FILTER_PR;
645+
value &= ~GMAC_PACKET_FILTER_RA;
645646
if (dev->flags & IFF_PROMISC) {
646647
/* VLAN Tag Filter Fail Packets Queuing */
647648
if (hw->vlan_fail_q_en) {

0 commit comments

Comments
 (0)