mirror_ubuntu-kernels/drivers/net/ethernet/marvell/octeontx2
Hariprasad Kelam 2e7bc57b97 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: c5a73b632b ("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>
2023-07-02 15:47:18 +01:00
..
af octeontx2-af: Fix mapping for NIX block from CGX connection 2023-07-02 15:47:18 +01:00
nic Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
Kconfig octeontx2-pf: Add support for page pool 2023-05-23 10:47:50 +02:00
Makefile octeontx2-pf: Add Marvell OcteonTX2 NIC driver 2020-01-27 14:33:39 +01:00