提交 4c7a9428 编写于 作者: R Ramesh Babu B 提交者: David S. Miller

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: e0f9956a ("net: stmmac: Add option for VLAN filter fail queue enable")
Signed-off-by: NRamesh Babu B <ramesh.babu.b@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c61760e6
...@@ -642,6 +642,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw, ...@@ -642,6 +642,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
value &= ~GMAC_PACKET_FILTER_PCF; value &= ~GMAC_PACKET_FILTER_PCF;
value &= ~GMAC_PACKET_FILTER_PM; value &= ~GMAC_PACKET_FILTER_PM;
value &= ~GMAC_PACKET_FILTER_PR; value &= ~GMAC_PACKET_FILTER_PR;
value &= ~GMAC_PACKET_FILTER_RA;
if (dev->flags & IFF_PROMISC) { if (dev->flags & IFF_PROMISC) {
/* VLAN Tag Filter Fail Packets Queuing */ /* VLAN Tag Filter Fail Packets Queuing */
if (hw->vlan_fail_q_en) { if (hw->vlan_fail_q_en) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册