]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-af: Update/Fix NPC field hash extract feature
authorRatheesh Kannoth <rkannoth@marvell.com>
Wed, 3 May 2023 07:09:40 +0000 (12:39 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 9 Aug 2023 09:37:41 +0000 (11:37 +0200)
commit9e2a5db37116bb3eb5904306205a774bf76a8ee2
treecefd6bbd85a9ba18b087be64dddff0f6a066f94e
parenta1ff74ff2631665d9c599c7371e4e8d6f1ad2119
octeontx2-af: Update/Fix NPC field hash extract feature

BugLink: https://bugs.launchpad.net/bugs/2028580
[ Upstream commit 406bed11fb91a0b35c26fe633d8700febaec6439 ]

1. As per previous implementation, mask and control parameter to
generate the field hash value was not passed to the caller program.
Updated the secret key mbox to share that information as well,
as a part of the fix.
2. Earlier implementation did not consider hash reduction of both
source and destination IPv6 addresses. Only source IPv6 address
was considered. This fix solves that and provides option to hash

Fixes: 56d9f5fd2246 ("octeontx2-af: Use hashed field in MCAM key")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h