]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Clear receive all(RA) bit when promiscuous mode is off
authorRamesh Babu B <ramesh.babu.b@intel.com>
Tue, 4 May 2021 15:42:41 +0000 (21:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 May 2021 19:01:37 +0000 (12:01 -0700)
commit5cbf32a8f9232a22e13d5a8a87933d99c4c775f1
tree82b2fe9cd0c6e69380bd7563b30166d78e70b506
parentb6bc2342c9810e890bddfbf81c6d51cbe81dcd31
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: 1998b6df28bd ("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>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c