mbox series

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

Message ID 20230206153603.2801791-1-simon.horman@corigine.com (mailing list archive)
Headers show
Series devlink: expose port function commands to assign VFs to multiple devlink | expand

Message

Simon Horman Feb. 6, 2023, 3:36 p.m. UTC
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(-)