]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-af: Fix mapping for NIX block from CGX connection
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 30 Jun 2023 06:28:43 +0000 (11:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Jul 2023 14:47:18 +0000 (15:47 +0100)
commit2e7bc57b976bb016c6569a54d95c1b8d88f9450a
tree6ae9d38862bce0509706cd141b03318748874025
parent4c5a331cacda995e995a7857f0e44e8937d98d2c
octeontx2-af: Fix mapping for NIX block from CGX connection

Firmware configures NIX block mapping for all MAC blocks.
The current implementation reads the configuration and
creates the mapping between RVU PF  and NIX blocks. But
this configuration is only valid for silicons that support
multiple blocks. For all other silicons, all MAC blocks
map to NIX0.

This patch corrects the mapping by adding a check for the same.

Fixes: c5a73b632b90 ("octeontx2-af: Map NIX block from CGX connection")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c