Skip to content

fix hotplug API

Gaetan Rivet dpdk-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 1 replyIn review
  2. v38 patches 7 repliesSuperseded
  3. v28 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches4 repliesSuperseded

Changes in v4 from the cover letter

- Free rte_devargs after the device is being removed, to avoid risks of buses relying on the rte_devargs during the process.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8vdev: implement plug operationlib/librte_eal/common/eal_common_vdev.c lib/librte_eal/common/include/rte_vdev.h+14 -50 replies
2/8devargs: introduce removal functionlib/librte_eal/bsdapp/eal/rte_eal_version.map lib/librte_eal/common/eal_common_devargs.c lib/librte_eal/common/include/rte_devargs.h +1 more+39 -00 replies
3/8devargs: introduce insert functionlib/librte_eal/bsdapp/eal/rte_eal_version.map lib/librte_eal/common/eal_common_devargs.c lib/librte_eal/common/include/rte_devargs.h +1 more+27 -00 replies
4/8eal: fix hotplug add / removelib/librte_eal/common/eal_common_dev.c+53 -30 replies
5/8pci: use given name as generic namelib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/common/eal_common_pci.c lib/librte_eal/common/eal_private.h +1 more+33 -90 replies
6/8pci: fix generic driver pointer on probe errorlib/librte_eal/common/eal_common_pci.c+1 -00 replies
7/8pci: fix hotplug operationslib/librte_eal/common/eal_common_pci.c+6 -190 replies
8/8bus: remove useless plug parameterlib/librte_eal/common/eal_common_dev.c lib/librte_eal/common/eal_common_pci.c lib/librte_eal/common/eal_common_vdev.c +1 more+4 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/8] fix hotplug API

Sending those fixes as separate patches as they stand on their own. This series improves usability of the hotplug API and fixes a few issues with existing implementations.

The hotplug API can be tested with the fail-safe PMD[1]. Its documentation describes how to declare slaves and how to use it.

[1]: http://dpdk.org/ml/archives/dev/2017-July/070529.html

v2:

- Add a new rte_devargs function taylored for hotplug operations. Upon device hotplug, the device is implicitly whitelisted. This configuration should supersede any previous existing bus configuration.
- Merge hotplug add and remove fixes as they are now tied up.
- Do not return an rte_device handle back from hotplug_add.

v3:

- Further explain
- the new rte_eal_devargs_insert function.
- the hotplug add / remove fix
- the PCI device name fix
- Add comments to pci_name_set

v4:

- Free rte_devargs after the device is being removed, to avoid risks of buses relying on the rte_devargs during the process.

Gaetan Rivet (8):
vdev: implement plug operation
devargs: introduce removal function
devargs: introduce insert function
eal: fix hotplug add / remove
pci: use given name as generic name
pci: fix generic driver pointer on probe error
pci: fix hotplug operations
bus: remove useless plug parameter

 lib/librte_eal/bsdapp/eal/eal_pci.c             |  4 +-
 lib/librte_eal/bsdapp/eal/rte_eal_version.map   |  2 +
 lib/librte_eal/common/eal_common_dev.c          | 58 +++++++++++++++++++++++--
 lib/librte_eal/common/eal_common_devargs.c      | 31 +++++++++++++
 lib/librte_eal/common/eal_common_pci.c          | 57 +++++++++++++-----------
 lib/librte_eal/common/eal_common_vdev.c         | 12 ++---
 lib/librte_eal/common/eal_private.h             |  5 +++
 lib/librte_eal/common/include/rte_bus.h         |  6 +--
 lib/librte_eal/common/include/rte_devargs.h     | 31 +++++++++++++
 lib/librte_eal/common/include/rte_vdev.h        |  7 +++
 lib/librte_eal/linuxapp/eal/eal_pci.c           |  4 +-
 lib/librte_eal/linuxapp/eal/rte_eal_version.map |  2 +
 12 files changed, 176 insertions(+), 43 deletions(-)
Signature · 1 line
2.1.4