From: Jakub Kicinski Date: Sat, 18 Jan 2025 03:58:01 +0000 (-0800) Subject: Merge branch 'mlxsw-move-tx-header-handling-to-pci-driver' X-Git-Tag: v6.14-rc1~162^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19e1e17f50c411f77140dd86d8255c8daa9e2edb;p=thirdparty%2Flinux.git Merge branch 'mlxsw-move-tx-header-handling-to-pci-driver' Petr Machata says: ==================== mlxsw: Move Tx header handling to PCI driver Amit Cohen writes: Tx header should be added to all packets transmitted from the CPU to Spectrum ASICs. Historically, handling this header was added as a driver function, as Tx header is different between Spectrum and Switch-X. From May 2021, there is no support for SwitchX-2 ASIC, and all the relevant code was removed. For now, there is no justification to handle Tx header as part of spectrum.c, we can handle this as part of PCI, in skb_transmit(). This change will also be useful when XDP support will be added to mlxsw, as for XDP_TX and XDP_REDIRECT actions, Tx header should be added before transmitting the packet. Patch set overview: Patches #1-#2 add structure to store Tx header info and initialize it Patch #3 moves definitions of Tx header fields to txheader.h Patch #4 moves Tx header handling to PCI driver Patch #5 removes unnecessary attribute ==================== Link: https://patch.msgid.link/cover.1737044384.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski --- 19e1e17f50c411f77140dd86d8255c8daa9e2edb