kernel: 5.15: update Aquantia PHY driver to v6.1 code
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 766-v5.18-05-net-dsa-tag_qca-enable-promisc_on_master-flag.patch
1 From 101c04c3463b87061e6a3d4f72c1bc57670685a6 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Wed, 2 Feb 2022 01:03:24 +0100
4 Subject: [PATCH 05/16] net: dsa: tag_qca: enable promisc_on_master flag
5
6 Ethernet MDIO packets are non-standard and DSA master expects the first
7 6 octets to be the MAC DA. To address these kind of packet, enable
8 promisc_on_master flag for the tagger.
9
10 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
11 Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
12 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 ---
15 net/dsa/tag_qca.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/net/dsa/tag_qca.c
19 +++ b/net/dsa/tag_qca.c
20 @@ -68,6 +68,7 @@ static const struct dsa_device_ops qca_n
21 .xmit = qca_tag_xmit,
22 .rcv = qca_tag_rcv,
23 .needed_headroom = QCA_HDR_LEN,
24 + .promisc_on_master = true,
25 };
26
27 MODULE_LICENSE("GPL");