kernel-hacking-2024-linux-s.../drivers
Vladimir Oltean b4638af888 net: dsa: sja1105: always enable the INCL_SRCPT option
Link-local traffic on bridged SJA1105 ports is sometimes tagged by the
hardware with source port information (when the port is under a VLAN
aware bridge).

The tag_8021q source port identification has become more loose
("imprecise") and will report a plausible rather than exact bridge port,
when under a bridge (be it VLAN-aware or VLAN-unaware). But link-local
traffic always needs to know the precise source port.

Modify the driver logic (and therefore: the tagging protocol itself) to
always include the source port information with link-local packets,
regardless of whether the port is standalone, under a VLAN-aware or
VLAN-unaware bridge. This makes it possible for the tagging driver to
give priority to that information over the tag_8021q VLAN header.

The big drawback with INCL_SRCPT is that it makes it impossible to
distinguish between an original MAC DA of 01:80:C2:XX:YY:ZZ and
01:80:C2:AA:BB:ZZ, because the tagger just patches MAC DA bytes 3 and 4
with zeroes. Only if PTP RX timestamping is enabled, the switch will
generate a META follow-up frame containing the RX timestamp and the
original bytes 3 and 4 of the MAC DA. Those will be used to patch up the
original packet. Nonetheless, in the absence of PTP RX timestamping, we
have to live with this limitation, since it is more important to have
the more precise source port information for link-local traffic.

Fixes: d7f9787a76 ("net: dsa: tag_8021q: add support for imprecise RX based on the VBID")
Fixes: 91495f21fc ("net: dsa: tag_8021q: replace the SVL bridging with VLAN-unaware IVL bridging")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2023-06-29 14:41:26 +02:00
..
accel
accessibility
acpi Power management updates for 6.5-rc1 2023-06-26 19:36:30 -07:00
amba
android
ata
atm
auxdisplay
base regmap: Updates for v6.5 2023-06-28 13:26:19 -07:00
bcma
block Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
bluetooth
bus
cdrom
cdx
char for-6.5/splice-2023-06-23 2023-06-26 11:52:12 -07:00
clk regulator: Updates for v6.5 2023-06-28 13:32:47 -07:00
clocksource Scheduler changes for v6.5: 2023-06-27 14:03:21 -07:00
comedi
connector
counter
cpufreq
cpuidle
crypto workqueue: Ordered workqueue creation cleanups 2023-06-27 16:46:06 -07:00
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac - Add initial support for RAS hardware found on AMD server GPUs (MI200). 2023-06-26 15:09:18 -07:00
eisa
extcon
firewire
firmware xen: branch for v6.5-rc1 2023-06-27 16:03:20 -07:00
fpga
fsi
gnss
gpio regmap: Updates for v6.5 2023-06-28 13:26:19 -07:00
gpu - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing arm64 updates for 6.5: 2023-06-26 17:11:53 -07:00
i2c
i3c
idle
iio
infiniband Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
input regulator: Updates for v6.5 2023-06-28 13:32:47 -07:00
interconnect
iommu - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
ipack
irqchip ARM updates for v6.5-rc1 2023-06-26 17:07:53 -07:00
isdn
leds
macintosh
mailbox
mcb
md - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
media - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
memory
memstick
message
mfd
misc - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
mmc MMC core: 2023-06-28 14:06:39 -07:00
most
mtd Core MTD changes: 2023-06-28 14:02:03 -07:00
mux
net net: dsa: sja1105: always enable the INCL_SRCPT option 2023-06-29 14:41:26 +02:00
nfc
ntb
nubus
nvdimm
nvme Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
nvmem
of
opp
parisc
parport
pci - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
pcmcia
peci
perf - Arnd Bergmann has fixed a bunch of -Wmissing-prototypes in 2023-06-28 10:59:38 -07:00
phy
pinctrl regulator: Updates for v6.5 2023-06-28 13:32:47 -07:00
platform chrome platform changes for 6.5 2023-06-26 20:12:07 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
sbus
scsi Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
sh
siox
slimbus
soc
soundwire
spi spi: Updates for v6.5 2023-06-28 13:48:42 -07:00
spmi
ssb
staging
target Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
tc
tee
thermal Thermal control updates for 6.5-rc1 2023-06-26 19:41:26 -07:00
thunderbolt
tty Move the Arm architecture documentation under Documentation/arch/. This 2023-06-27 11:58:16 -07:00
ufs
uio
usb - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
vdpa - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
vfio
vhost - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
video
virt workqueue: Ordered workqueue creation cleanups 2023-06-27 16:46:06 -07:00
virtio
vlynq
w1
watchdog
xen - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
zorro
Kconfig
Makefile