summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2023-08-14 07:32:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-08-14 15:04:34 +0200
commit96cb2e0bc45f43bfac8916065d3a58d475c82e62 (patch)
treec5cf074de4c310e8ad02f9c92244b4f0565f6c58 /drivers/net
parentc922a67b48b20de5f97dfc7d98b1fca8cd675e04 (diff)
downloadbarebox-96cb2e0bc45f43bfac8916065d3a58d475c82e62.tar.gz
barebox-96cb2e0bc45f43bfac8916065d3a58d475c82e62.tar.xz
net: designware: eqos: do not receive pause frames
Normally we need to care only about packets with not local MAC address destination. It is needed to support HW setups with multiple MAC addresses forwarded over one MAC. For example systems using DSA switch as port multiplexer. In this case one single MAC should handle packets with different MAC address destinations. This functionality is provided by the EQOS_MAC_PACKET_FILTER_PR. EQOS_MAC_PACKET_FILTER_PCF on other hand allow to capture ethernet control frames like pause frames which are not handled by barebox. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20230814053229.2311097-6-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/designware_eqos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/designware_eqos.c b/drivers/net/designware_eqos.c
index 825c8e0140..ccce51b6af 100644
--- a/drivers/net/designware_eqos.c
+++ b/drivers/net/designware_eqos.c
@@ -377,7 +377,7 @@ static int eqos_set_promisc(struct eth_device *edev, bool enable)
if (!eqos->is_started)
return 0;
- mask = EQOS_MAC_PACKET_FILTER_PR | EQOS_MAC_PACKET_FILTER_PCF;
+ mask = EQOS_MAC_PACKET_FILTER_PR;
if (enable)
setbits_le32(&eqos->mac_regs->packet_filter, mask);