netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 0/3] add vDPA driver for nfp devices
@ 2024-08-02  9:59 Louis Peens
  2024-08-02  9:59 ` [RFC net-next 1/3] nfp: add new devlink "enable_vnet" generic device param Louis Peens
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Louis Peens @ 2024-08-02  9:59 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski, Michael S. Tsirkin, Jason Wang
  Cc: eperezma, Kyle Xu, netdev, virtualization, oss-drivers

This is the first foray into upstreaming a vDPA driver for the nfp.
Submitting it as RFC initially, since this is touching a new component,
not sure if there are potentially any new-to-us requirements this needs
to fulfill. We are hoping that this is already in a state to
resubmit as PATCH, depending on the feedback this receives.

This series starts out by adding the "enable_vnet" parameter to
nfp_devlink, to allow setting the device mode.

Next the auxiliary bus driver is added, and the VF probe functions are
updated to probe the correct driver, based on the 'enable_vnet' setting.

Lastly the nfp_vDPA driver is added, initialising resources and adding
callbacks in accordance to the kernel vDPA framework.

Kyle Xu (3):
  nfp: add new devlink "enable_vnet" generic device param
  nfp: initialize NFP VF device according to enable_vnet configuration
  drivers/vdpa: add NFP devices vDPA driver

 MAINTAINERS                                   |   1 +
 drivers/net/ethernet/netronome/Kconfig        |   1 +
 .../ethernet/netronome/nfp/devlink_param.c    |  49 ++
 drivers/net/ethernet/netronome/nfp/nfp_main.h |   3 +
 drivers/net/ethernet/netronome/nfp/nfp_net.h  |  16 +
 .../ethernet/netronome/nfp/nfp_net_common.c   |   3 +
 .../net/ethernet/netronome/nfp/nfp_net_ctrl.h |   3 +
 .../net/ethernet/netronome/nfp/nfp_net_main.c |  10 +
 .../ethernet/netronome/nfp/nfp_netvf_main.c   | 264 ++++--
 drivers/vdpa/Kconfig                          |  10 +
 drivers/vdpa/Makefile                         |   1 +
 drivers/vdpa/netronome/Makefile               |   5 +
 drivers/vdpa/netronome/nfp_vdpa_main.c        | 821 ++++++++++++++++++
 13 files changed, 1127 insertions(+), 60 deletions(-)
 create mode 100644 drivers/vdpa/netronome/Makefile
 create mode 100644 drivers/vdpa/netronome/nfp_vdpa_main.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-29 12:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  9:59 [RFC net-next 0/3] add vDPA driver for nfp devices Louis Peens
2024-08-02  9:59 ` [RFC net-next 1/3] nfp: add new devlink "enable_vnet" generic device param Louis Peens
2024-08-02  9:59 ` [RFC net-next 2/3] nfp: initialize NFP VF device according to enable_vnet configuration Louis Peens
2024-08-02  9:59 ` [RFC net-next 3/3] drivers/vdpa: add NFP devices vDPA driver Louis Peens
2024-08-06  4:35   ` Jason Wang
2024-08-06  6:20     ` Louis Peens
2024-08-29 12:09     ` 回复: " Kyle Xu
2024-08-07 13:48   ` Simon Horman
2024-08-07 14:55   ` Eugenio Perez Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).