Re: [net PATCH 1/3] octeontx2-af: Fix hash extraction mbox message

From: Leon Romanovsky
Date: Wed Jul 12 2023 - 08:39:11 EST


On Wed, Jul 12, 2023 at 04:46:02PM +0530, Suman Ghosh wrote:
> As of today, hash extraction mbox message response supports only the
> secret key. This patch adds support to extract both hash mask and hash
> control along with the secret key. These are needed to use hash
> reduction of 128 bit IPv6 address to 32 bit.
>
> Fixes: a95ab93550d3 ("octeontx2-af: Use hashed field in MCAM key")
> Signed-off-by: Suman Ghosh <sumang@xxxxxxxxxxx>
> ---
> .../net/ethernet/marvell/octeontx2/af/mbox.h | 16 ++--
> .../marvell/octeontx2/af/rvu_npc_hash.c | 80 +++++++++++--------
> .../marvell/octeontx2/af/rvu_npc_hash.h | 13 +--
> 3 files changed, 67 insertions(+), 42 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>