Re: [PATCH net] octeontx2-af: fix IP fragment flag corruption on custom KPU profile load

From: Simon Horman

Date: Wed Jun 10 2026 - 11:23:16 EST


On Mon, Jun 08, 2026 at 03:24:55PM +0530, nshettyj@xxxxxxxxxxx wrote:
> From: Kiran Kumar K <kirankumark@xxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> Signed-off-by: Kiran Kumar K <kirankumark@xxxxxxxxxxx>
> Signed-off-by: Nitin Shetty J <nshettyj@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>