* [PATCH net-next] octeontx2-af: add support for custom L2 header
@ 2026-07-15 7:20 nshettyj
2026-07-24 23:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: nshettyj @ 2026-07-15 7:20 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Satheesh Paul A, Nitin Shetty J, Sunil Goutham, Ratheesh Kannoth,
Geetha sowjanya, Subbaraya Sundeep, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
From: Satheesh Paul A <psatheesh@marvell.com>
Add packet parsing support for custom L2 headers. Also add support
to include a field from the custom header for flow tag generation.
Introduce a new flow key type NIX_FLOW_KEY_TYPE_CH_LEN_90B which
maps to the NPC_LT_LA_CUSTOM_L2_90B_ETHER layer type. This extracts
a 2-byte field at a 24-byte offset in layer A to be used in flow
tag generation.
Signed-off-by: Satheesh Paul A <psatheesh@marvell.com>
Signed-off-by: Nitin Shetty J <nshettyj@marvell.com>
---
drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 1 +
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/mbox.h b/drivers/net/ethernet/marvell/octeontx2/af/mbox.h
index 253dfee9646e..10552e9cf519 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/mbox.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/mbox.h
@@ -1263,6 +1263,7 @@ struct nix_rss_flowkey_cfg {
#define NIX_FLOW_KEY_TYPE_INNR_UDP BIT(15)
#define NIX_FLOW_KEY_TYPE_INNR_SCTP BIT(16)
#define NIX_FLOW_KEY_TYPE_INNR_ETH_DMAC BIT(17)
+#define NIX_FLOW_KEY_TYPE_CH_LEN_90B BIT(18)
#define NIX_FLOW_KEY_TYPE_CUSTOM0 BIT(19)
#define NIX_FLOW_KEY_TYPE_VLAN BIT(20)
#define NIX_FLOW_KEY_TYPE_IPV4_PROTO BIT(21)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
index c5bddd2ad920..dade7bb6deb7 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
@@ -4288,6 +4288,13 @@ static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg)
field->ltype_match = NPC_LT_LC_CUSTOM0;
field->ltype_mask = 0xF;
break;
+ case NIX_FLOW_KEY_TYPE_CH_LEN_90B:
+ field->lid = NPC_LID_LA;
+ field->hdr_offset = 24;
+ field->bytesm1 = 1; /* 2 Bytes*/
+ field->ltype_match = NPC_LT_LA_CUSTOM_L2_90B_ETHER;
+ field->ltype_mask = 0xF;
+ break;
case NIX_FLOW_KEY_TYPE_VLAN:
field->lid = NPC_LID_LB;
field->hdr_offset = 2; /* Skip TPID (2-bytes) */
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] octeontx2-af: add support for custom L2 header
2026-07-15 7:20 [PATCH net-next] octeontx2-af: add support for custom L2 header nshettyj
@ 2026-07-24 23:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-07-24 23:20 UTC (permalink / raw)
To: Nitin Shetty J
Cc: netdev, linux-kernel, psatheesh, sgoutham, rkannoth, gakula,
sbhatta, andrew+netdev, davem, edumazet, kuba, pabeni
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 15 Jul 2026 12:50:34 +0530 you wrote:
> From: Satheesh Paul A <psatheesh@marvell.com>
>
> Add packet parsing support for custom L2 headers. Also add support
> to include a field from the custom header for flow tag generation.
>
> Introduce a new flow key type NIX_FLOW_KEY_TYPE_CH_LEN_90B which
> maps to the NPC_LT_LA_CUSTOM_L2_90B_ETHER layer type. This extracts
> a 2-byte field at a 24-byte offset in layer A to be used in flow
> tag generation.
>
> [...]
Here is the summary with links:
- [net-next] octeontx2-af: add support for custom L2 header
https://git.kernel.org/netdev/net-next/c/e2834100751a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-24 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 7:20 [PATCH net-next] octeontx2-af: add support for custom L2 header nshettyj
2026-07-24 23:20 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.