Matthias Schiffer 0b6b54eca9 ipq40xx: net/ipqess: fix outbound port tag computation
Since the introduction of out-of-band tagging, writing the outbound tag
had been completely broken: First, in place of a port mask containing
the port number, just the port number itself was set in the register
value. Just after that, the full port mask 0x3e (all 5 external ports)
was set unconditionally.

This remained unnoticed because the switch would then use the FDB to
decide where to send unicast packets; broadcast and multicast packets
were however sent to every port.

Fix the port tag computation and only use the full port mask as a
fallback for non-DSA mode, as it was done in the older driver patches
used on Linux 5.15.

Fixes: cd9c7211241e ("ipq40xx: 6.1: use latest DSA and ethernet patches")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-06-20 10:52:26 +02:00
..
2024-06-05 09:34:06 +02:00
2024-06-20 01:55:19 +02:00
2024-04-30 20:18:15 +02:00
2024-05-29 17:56:28 +02:00
2024-06-20 10:41:50 +02:00
2024-06-08 14:16:19 +02:00
2024-06-20 01:55:19 +02:00
2024-06-17 12:57:06 +02:00
2024-06-20 09:56:50 +02:00
2024-06-17 12:57:06 +02:00
2024-06-20 01:55:19 +02:00
2024-04-25 14:33:22 +02:00
2024-04-18 00:30:03 +03:00
2024-06-17 12:57:06 +02:00
2024-06-19 00:01:41 +02:00
2024-04-30 11:02:48 +02:00
2024-06-17 12:57:06 +02:00
2024-06-17 12:59:06 +02:00
2024-05-01 10:26:41 +02:00