octeontx2-af: Fix PKIND overlap between LBK and LMAC interfaces
authorGeetha sowjanya <gakula@marvell.com>
Sun, 25 Jul 2021 07:58:24 +0000 (13:28 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 08:25:03 +0000 (09:25 +0100)
commitac059d16442f30e6a9a95d41655153e01247e710
tree5f816930d5cf59d07a0f86057c36e8f42fa139de
parent89bc7f456cd40e0be7b94f4fdae9186f22b76a05
octeontx2-af: Fix PKIND overlap between LBK and LMAC interfaces

Currently PKINDs are not assigned to LBK channels.
The default value of LBK_CHX_PKIND (channel to PKIND mapping) register
is zero, which is resulting in a overlap of pkind between LBK and CGX
LMACs. When KPU1 parser config is modified when PTP timestamping is
enabled on the CGX LMAC interface it is impacting traffic on LBK
interfaces as well.

This patch fixes the issue by reserving the PKIND#0 for LBK devices.
CGX mapped PF pkind starts from 1 and also fixes the max pkind available.

Fixes: 421572175ba5 ("octeontx2-af: Support to enable/disable HW timestamping")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/npc.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c