introduce new iavf driver on vfio-user client
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 3 repliesIn review
- v24 patches 0 repliesSuperseded
- v12 patches 1 replySuperseded
Changes in v3 from the cover letter
- Reword commit log
- Add missed patch in v2
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | common/iavf: emulated pci interfaces on vfio-user clientconfig/ drivers/ drivers/ +6 more | +679 | 0 replies | |
| 2/5 | net/iavf_client: introduce iavf driver on vfio-user clientdrivers/ drivers/ drivers/ +4 more | +339 | 0 replies | |
| 3/5 | net/iavf_client: enable interrupt on control queuedrivers/ drivers/ drivers/ | +134 | 0 replies | |
| 4/5 | net/iavf_client: enable interrupt of Rx queuedrivers/ drivers/ | +26 | 0 replies | |
| 5/5 | net/iavf: fix vector mapping with queuedrivers/ | +2 | 3 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by.
| Patch | Xie,WeiX |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [dpdk-dev] [PATCH v3 0/5] introduce new iavf driver on vfio-user client
This series introduces a new net virtual device called iavf_client which is based on vfio-user client interface. Through vfio-user client interface, PCI liked device could be used similar as Intel® Ethernet Adaptive Virtual Function specification.
The code to enable iavf_client mainly contains two parts:
- Emulated pci interfaces for vfio-user client which is located in common/iavf/vfio_user/.
- A new net driver base on vdev abstraction, i.e. iavf_client_ethdev.c
----------------------
| ------------------ |
| | iavf driver | |----> (iavf_client_ethdev.c)
| ------------------ |
| ------------------ |
| | device emulate | |------>(common/iavf/vfio_user/)
| ------------------ |
----------------------
|
|
----------------------
| vfio-user |
| client |
----------------------This driver can be used to test the device emulation framework mentioned in:
[RFC 0/2] Add device emulation support in DPDK
http://patchwork.dpdk.org/cover/75549/
+------------------------------------------------------+
| +---------------+ +---------------+ |
| | iavf_emudev | | iavfbe_ethdev | |
| | driver | | driver | |
| +---------------+ +---------------+ |
| | | |
| ------------------------------------------- VDEV BUS |
| | | |
| +---------------+ +--------------+ |
+--------------+ | | vdev: | | vdev: | |
| +----------+ | | | /path/to/vfio | |iavf_emudev_# | |
| | iavf | | | +---------------+ +--------------+ |
| | client | | | |
| +----------+ | | | |
| +----------+ | | +----------+ |
| | vfio-user| | | | vfio-user| |
| | client | |<---|----->| server | |
| +----------+ | | +----------+ |
| QEMU/DPDK | | DPDK |
+--------------+ +------------------------------------------------------+It can be launched together with patch series for the testing:
[0/9] Introduce vfio-user library:
http://patchwork.dpdk.org/cover/85389/
[0/8] Introduce emudev library and iavf emudev driver
http://patchwork.dpdk.org/cover/85488/
[0/6] Introduce iavf backend driver
http://patchwork.dpdk.org/cover/86084/
This series depends on patch serieses:
[0/9] Introduce vfio-user library:
http://patchwork.dpdk.org/cover/85389/
v3:
- Reword commit log
- Add missed patch in v2
v2:
- Enable interrupt for control queue
- Enable interrupt for rx queue
- Rename some Macros
- Fix resource release when close
- Fix ptype_tbl assignment
- Fix typo
Jingjing Wu (5):
common/iavf: emulated pci interfaces on vfio-user client net/iavf_client: introduce iavf driver on vfio-user client net/iavf_client: enable interrupt on control queue net/iavf_client: enable interrupt of Rx queue net/iavf: fix vector mapping with queue
config/rte_config.h | 3 + drivers/common/iavf/iavf_common.c | 7 + drivers/common/iavf/iavf_impl.c | 45 +- drivers/common/iavf/iavf_osdep.h | 14 + drivers/common/iavf/iavf_prototype.h | 1 + drivers/common/iavf/iavf_type.h | 3 + drivers/common/iavf/meson.build | 11 +- drivers/common/iavf/version.map | 6 + drivers/common/iavf/vfio_user/vfio_user_pci.c | 525 ++++++++++++++++++ drivers/common/iavf/vfio_user/vfio_user_pci.h | 68 +++ drivers/net/iavf/iavf.h | 37 +- drivers/net/iavf/iavf_client_ethdev.c | 404 ++++++++++++++ drivers/net/iavf/iavf_ethdev.c | 57 +- drivers/net/iavf/iavf_rxtx.c | 23 +- drivers/net/iavf/meson.build | 1 + 15 files changed, 1157 insertions(+), 48 deletions(-) create mode 100644 drivers/common/iavf/vfio_user/vfio_user_pci.c create mode 100644 drivers/common/iavf/vfio_user/vfio_user_pci.h create mode 100644 drivers/net/iavf/iavf_client_ethdev.c
Signature · 1 line
2.21.1