]> exis.tech > repos - linux.git/commit
octeontx2-af: fix IP fragment flag corruption on custom KPU profile load
authorKiran Kumar K <kirankumark@marvell.com>
Mon, 8 Jun 2026 09:54:55 +0000 (15:24 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Jun 2026 10:59:34 +0000 (12:59 +0200)
commit7360b96099806396f4ce15233f6dddcb69248d34
tree0d26fe1f8292949f5da3727d3500f37b5f22046f
parent64ced6c0882756db52cbedf50bc66338de4a4045
octeontx2-af: fix IP fragment flag corruption on custom KPU profile load

npc_cn20k_apply_custom_kpu() overwrites KPU profile entries with custom
firmware values and then calls npc_cn20k_update_action_entries_n_flags()
over all entries.  Since the same function already ran during default
profile initialisation, entries not overridden by the custom firmware
get their flags translated twice, corrupting the CN20K-specific values.

Fix this by extracting the per-entry translation into a helper
npc_cn20k_translate_action_flags() and calling it as each custom entry
is loaded, removing the redundant batch call at the end.

Fixes: ef992a0f12e8 ("octeontx2-af: npc: cn20k: MKEX profile support")
Cc: Suman Ghosh <sumang@marvell.com>
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: Nitin Shetty J <nshettyj@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260608095455.1499203-1-nshettyj@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c