]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: cleanup transmit link deriving logic
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 25 Aug 2021 12:18:40 +0000 (17:48 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 12:39:01 +0000 (13:39 +0100)
commit4c07908803ee09bb2403ee94b54df6aa052e8316
tree88f281b284405872ef02954719f2cbd25eb3e893
parent0a3b50ba55769da3eaeb1f8d0d3cf24b808a16af
octeontx2-pf: cleanup transmit link deriving logic

Unlike OcteonTx2, the channel numbers used by CGX/RPM
and LBK on CN10K silicons aren't fixed in HW. They are
SW programmable, hence we cannot derive transmit link
from static channel numbers anymore. Get the same from
admin function via mailbox.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h