]> www.infradead.org Git - users/hch/misc.git/commit
net: airoha: Move DSA tag in DMA descriptor
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 28 Feb 2025 10:54:13 +0000 (11:54 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Mar 2025 12:22:09 +0000 (13:22 +0100)
commitaf3cf757d5c99011b9b94ea8d78aeaccc0153fdc
tree17b9f2eae4a73bcb1f1f57b020486159b8fbb284
parentec663d9a82bf4d16721f6b1fc29df4892ba6c088
net: airoha: Move DSA tag in DMA descriptor

Packet Processor Engine (PPE) module reads DSA tags from the DMA descriptor
and requires untagged DSA packets to properly parse them. Move DSA tag
in the DMA descriptor on TX side and read DSA tag from DMA descriptor
on RX side. In order to avoid skb reallocation, store tag in skb_dst on
RX side.
This is a preliminary patch to enable netfilter flowtable hw offloading
on EN7581 SoC.

Tested-by: Sayantan Nandy <sayantan.nandy@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_regs.h