]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-af: Fix issue with loading coalesced KPU profiles
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 26 Mar 2024 12:21:49 +0000 (17:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:07 +0000 (16:38 +0200)
commit77a67460d65dec7cc84d835b75c18ff5ea9b4c40
tree0499977d76cafc44a7d774aaf54b59d1f810286e
parent084c77bd71eb4dd844007741041b8ae219da498f
octeontx2-af: Fix issue with loading coalesced KPU profiles

commit 0ba80d96585662299d4ea4624043759ce9015421 upstream.

The current implementation for loading coalesced KPU profiles has
a limitation.  The "offset" field, which is used to locate profiles
within the profile is restricted to a u16.

This restricts the number of profiles that can be loaded. This patch
addresses this limitation by increasing the size of the "offset" field.

Fixes: 11c730bfbf5b ("octeontx2-af: support for coalescing KPU profiles")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c