DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v6 0/6] qede: SR-IOV PF driver support
@ 2020-09-25 11:55 Manish Chopra
  2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 1/6] drivers: add generic API to find PCI extended cap Manish Chopra
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Manish Chopra @ 2020-09-25 11:55 UTC (permalink / raw)
  To: jerinjacobk, jerinj, ferruh.yigit, grive
  Cc: dev, irusskikh, rmody, GR-Everest-DPDK-Dev, rosen.xu,
	tianfei.zhang, heinrich.kuhn, qiming.yang, qi.z.zhang

Hi,

This series adds SR-IOV PF pmd driver support to have VF pmd
driver work over PF pmd driver instances in order to run the
adapter completely under DPDK environment for one of the use
cases like ovs-dpdk.

This is very initial bring-up with following testing covered -

* Enable/Disable SR-IOV VFs through igb_uio sysfs hook.
* Load VFs, run fastpath, teardown VFs in hypervisor and guest VM.
* VF FLR flow (in case of VF PCI passthrough to the guest VM)
* Bulletin mechanism tested to communicate link changes to the VFs.

Note that this series is intended for upcoming DPDK release (20.11)
Please consider applying this series to dpdk-next-net-mrvl.git

V5->V6:
=======

* Re-based it on latest dpdk-next-net-mrvl.git
  (driver/net/qede/Makefile change removed from patch #3, file no longer exist)
* Added Reviewed-by tag and renamed rte_pci_find_next_ext_capability to
  rte_pci_find_ext_capability as per comment from Nithin Kumar Dabilpuram

V4->V5:
=======

* drivers/raw/ifpga was escaped to compile, test-robot reported
  below build failure which is fixed within patch #1 in this series.

'drivers/drivers@@tmp_rte_rawdev_ifpga@sta/raw_ifpga_ifpga_rawdev.c.o' -c ../drivers/raw/ifpga/ifpga_rawdev.c
../drivers/raw/ifpga/ifpga_rawdev.c: In function ‘ifpga_pci_find_next_ext_capability’:
../drivers/raw/ifpga/ifpga_rawdev.c:166:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   if (RTE_PCI_EXT_CAP_ID(header) == cap && pos != start)
                                  ^~
cc1: all warnings being treated as errors

V3->V4:
=======

* Fixed meson/ninja build failure for AMD arch.
* Incorporated cosmetic changes pointed by Gaetan.

V2->V3:
=======

* Instead of adding complete pci_regs.h file from linux, define handful
  PCI symbols (prefixed with RTE_) in dpdk which are required to implement
  generic rte_pci_find_next_ext_capability() API (patch #1) and to enable
  various other qede driver's OSAL_* defines (patch #2)
  (essentially, removed the patch #1 in v2)

* Fixed meson/ninja compilation issues reported

* Incorporated comments by Gaetan for rte_pci_find_next_ext_capability()

V1->V2: (Incorporated comments from Jerin Jacob)
================================================

* Added rte_pci_regs.h file (copy of linux/pci_regs.h) under
  lib/librte_pci to remove the dependency of dpdk on user headers

* Added generic API to find PCI extended capability and use
  that in the drivers, removed individual functions implemented
  by the drivers

Thanks,
Manish

Manish Chopra (6):
  drivers: add generic API to find PCI extended cap
  net/qede: define PCI config space specific osals
  net/qede: configure VFs on hardware
  net/qede: add infrastructure support for VF load
  net/qede: initialize VF MAC and link
  net/qede: add VF FLR support

 doc/guides/nics/features/qede.ini          |   1 +
 doc/guides/nics/qede.rst                   |   7 +-
 drivers/bus/pci/pci_common.c               |  43 ++++
 drivers/bus/pci/rte_bus_pci.h              |  19 ++
 drivers/bus/pci/rte_bus_pci_version.map    |   6 +
 drivers/net/ice/ice_ethdev.c               |  51 +----
 drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c |  48 +----
 drivers/net/qede/base/bcm_osal.c           |  31 +++
 drivers/net/qede/base/bcm_osal.h           |  29 ++-
 drivers/net/qede/base/ecore.h              |   7 +
 drivers/net/qede/base/ecore_dev.c          |   6 +-
 drivers/net/qede/base/ecore_iov_api.h      |   3 +
 drivers/net/qede/base/ecore_sriov.c        |  28 +--
 drivers/net/qede/base/meson.build          |   2 +-
 drivers/net/qede/meson.build               |   1 +
 drivers/net/qede/qede_ethdev.c             |  37 +++-
 drivers/net/qede/qede_ethdev.h             |   1 +
 drivers/net/qede/qede_if.h                 |   1 +
 drivers/net/qede/qede_main.c               |  12 +-
 drivers/net/qede/qede_sriov.c              | 219 +++++++++++++++++++++
 drivers/net/qede/qede_sriov.h              |  22 +++
 drivers/raw/ifpga/ifpga_rawdev.c           |  17 +-
 lib/librte_pci/rte_pci.h                   |  35 ++++
 23 files changed, 485 insertions(+), 141 deletions(-)
 create mode 100644 drivers/net/qede/qede_sriov.c
 create mode 100644 drivers/net/qede/qede_sriov.h

-- 
2.17.1


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

end of thread, other threads:[~2020-09-29  7:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 11:55 [dpdk-dev] [PATCH v6 0/6] qede: SR-IOV PF driver support Manish Chopra
2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 1/6] drivers: add generic API to find PCI extended cap Manish Chopra
2020-09-27 12:21   ` Jerin Jacob
2020-09-28  8:59     ` David Marchand
2020-09-28 10:32       ` Ferruh Yigit
2020-09-29  7:40         ` Jerin Jacob
2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 2/6] net/qede: define PCI config space specific osals Manish Chopra
2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 3/6] net/qede: configure VFs on hardware Manish Chopra
2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 4/6] net/qede: add infrastructure support for VF load Manish Chopra
2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 5/6] net/qede: initialize VF MAC and link Manish Chopra
2020-09-25 11:55 ` [dpdk-dev] [PATCH v6 6/6] net/qede: add VF FLR support Manish Chopra

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).