[dpdk-dev] [PATCH v2 00/15] devargs fixes
Jan Blunck
jblunck at infradead.org
Fri Jul 14 23:11:58 CEST 2017
The changes to enum rte_devtype that got merged into 17.08-rc1 are breaking
API without prior notice. This series is reworking the rte_devargs changes
in a way hopefully compliant to the new failover PMD and still keeping API
compatible with earlier releases.
The introduced changes to 17.08-rc1 are trading the tightly coupling of
struct rte_devargs to the PCI and vdev bus against the struct rte_bus.
The changes proposed in this series decouple struct rte_devargs from
the new dependencies.
Changes since v1:
- explicitly pass busname to rte_eal_devargs_parse() and validate it
- better explain why changes are done
Jan Blunck (15):
Revert "devargs: make device types generic"
devargs: fix unittest
devargs: extend unittest
devargs: deprecate enum rte_devtype based functions
pci: use scan_mode configuration
bus: add configuration interface for buses
devargs: use bus configuration interface to set scanning mode
devargs: use existing functions in rte_eal_devargs_parse()
devargs: add busname string field
devargs: use busname
pci: use busname
vdev: use busname
devargs: pass busname argument when parsing
devargs: remove type field
devargs: remove bus field
doc/guides/rel_notes/deprecation.rst | 7 +
drivers/net/virtio/virtio_pci.c | 3 +-
lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 +
lib/librte_eal/common/eal_common_bus.c | 16 +++
lib/librte_eal/common/eal_common_devargs.c | 168 +++++++++++++-----------
lib/librte_eal/common/eal_common_options.c | 6 +-
lib/librte_eal/common/eal_common_pci.c | 15 +--
lib/librte_eal/common/eal_common_vdev.c | 3 +-
lib/librte_eal/common/include/rte_bus.h | 9 ++
lib/librte_eal/common/include/rte_devargs.h | 32 +++--
lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 +
test/test/test_devargs.c | 55 +++++---
12 files changed, 188 insertions(+), 128 deletions(-)
--
2.13.2
More information about the dev
mailing list