
On OcteonTx2 silicon there two two types VFs, VFs that share the physical link with their parent SR-IOV PF and the VFs which work in pairs using internal HW loopback channels (LBK). Except for the underlying Rx/Tx channel mapping from netdev functionality perspective they are almost identical. This patch adds netdev driver support for these VFs. Unlike it's parent PF a VF cannot directly communicate with admin function (AF) and it has to go through PF for the same. The mailbox communication with AF works like 'VF <=> PF <=> AF'. Also functionality wise VF and PF are identical, hence to avoid code duplication PF driver's APIs are resued here for HW initialization, packet handling etc etc ie almost everything. For VF driver to compile as module exported few of the existing PF driver APIs. Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Marvell OcteonTX2 drivers configuration
|
|
#
|
|
|
|
config OCTEONTX2_MBOX
|
|
tristate
|
|
|
|
config OCTEONTX2_AF
|
|
tristate "Marvell OcteonTX2 RVU Admin Function driver"
|
|
select OCTEONTX2_MBOX
|
|
depends on (64BIT && COMPILE_TEST) || ARM64
|
|
depends on PCI
|
|
help
|
|
This driver supports Marvell's OcteonTX2 Resource Virtualization
|
|
Unit's admin function manager which manages all RVU HW resources
|
|
and provides a medium to other PF/VFs to configure HW. Should be
|
|
enabled for other RVU device drivers to work.
|
|
|
|
config NDC_DIS_DYNAMIC_CACHING
|
|
bool "Disable caching of dynamic entries in NDC"
|
|
depends on OCTEONTX2_AF
|
|
default n
|
|
---help---
|
|
This config option disables caching of dynamic entries such as NIX SQEs
|
|
, NPA stack pages etc in NDC. Also locks down NIX SQ/CQ/RQ/RSS and
|
|
NPA Aura/Pool contexts.
|
|
|
|
config OCTEONTX2_PF
|
|
tristate "Marvell OcteonTX2 NIC Physical Function driver"
|
|
select OCTEONTX2_MBOX
|
|
depends on (64BIT && COMPILE_TEST) || ARM64
|
|
depends on PCI
|
|
help
|
|
This driver supports Marvell's OcteonTX2 NIC physical function.
|
|
|
|
config OCTEONTX2_VF
|
|
tristate "Marvell OcteonTX2 NIC Virtual Function driver"
|
|
depends on OCTEONTX2_PF
|
|
help
|
|
This driver supports Marvell's OcteonTX2 NIC virtual function.
|