pds_core: devlink params for enabling VIF support
authorShannon Nelson <shannon.nelson@amd.com>
Wed, 19 Apr 2023 17:04:24 +0000 (10:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:29:13 +0000 (08:29 +0100)
commit40ced89445364baa8620e92fba5b3fff8d9742b9
tree7e6f3100e18d0c72372eafb5b0b00e522192d370
parent4569cce43bc61e4cdd76597a1cf9b608846c18cc
pds_core: devlink params for enabling VIF support

Add the devlink parameter switches so the user can enable
the features supported by the VFs.  The only feature supported
at the moment is vDPA.

Example:
    devlink dev param set pci/0000:2b:00.0 \
    name enable_vnet cmode runtime value true

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/device_drivers/ethernet/amd/pds_core.rst
drivers/net/ethernet/amd/pds_core/core.h
drivers/net/ethernet/amd/pds_core/devlink.c
drivers/net/ethernet/amd/pds_core/main.c