[PATCH/RFC net-next 0/2] devlink: expose port function commands to assign VFs to multiple devlink

Simon Horman
2023-02-06T15:39:24Z

Hi,

this series proposed a new devlink port function to allow control over
how many VFs are associated with each physical port of a multi-port NIC.

This is to facilitate such configuration on NICs where this can
be supported.

Patch 1/2: Implements this new devlink feature
Patch 2/2: Uses it in the nfp driver

Fei Qin (2):
devlink: expose port function commands to assign VFs to multiple
netdevs
nfp: add support for assigning VFs to different physical ports

.../networking/devlink/devlink-port.rst | 24 +++
.../net/ethernet/netronome/nfp/nfp_devlink.c | 71 +++++++++
drivers/net/ethernet/netronome/nfp/nfp_main.c | 5 +
drivers/net/ethernet/netronome/nfp/nfp_main.h | 4 +
.../ethernet/netronome/nfp/nfp_net_sriov.c | 147 +++++++++++++++++-
.../ethernet/netronome/nfp/nfp_net_sriov.h | 6 +
include/net/devlink.h | 21 +++
include/uapi/linux/devlink.h | 1 +
net/devlink/leftover.c | 65 ++++++++
9 files changed, 336 insertions(+), 8 deletions(-)

--
2.30.2