octeontx2-af: Enable LBK links only when switch mode is on.
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 12 Jun 2023 06:04:22 +0000 (11:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2023 08:54:57 +0000 (09:54 +0100)
commitb6a072a153277dc590703ada2fd1f53ecb7f8cb9
tree22858eea8f802f7c71099cd5b49c9a2576742399
parentbbba125eade7916277ef694d562cc95a39e86487
octeontx2-af: Enable LBK links only when switch mode is on.

Currently, all the TL3_TL2 nodes are being configured to enable
switch LBK channel 63 in them. Instead enable them only when switch
mode is enabled.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.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_nix.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c