numam-dpdk/drivers/bus/pci
Xueming Li d2a66ad794 bus: add device arguments name parsing
For device probe and iterator, devargs name was key information,
parsed by rte_devargs_parse. In legacy parser, devargs name was
extracted after bus name:
  bus:name,kv_arguments,,,
Example:
  pci:83:00.0,arguments,...
  vdev:pcap0,...

To be compatible with legacy parser, this patch introduces new
bus driver API devargs_parse to parse devargs and update devargs name.
If devargs_parse not implemented by bus driver, the new syntax parser
rte_devargs_layers_parse default will resolve devargs name from bus's
"name" argument.

Different bus driver might choose different keys from arguments with
unified format. The PCI bus implementation fills the devargs name with
the "addr" argument, example:
 -a bus=pci,addr=83:00.0/class=eth/driver=mlx5,...
    name: 0000:03:00.0
 -a bus=vdev,name=pcap0/class=eth/driver=pcap,...
    name:pcap0

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Gaetan Rivet <grive@u256.net>
2021-09-02 16:58:19 +02:00
..
bsd bus/pci: update files description 2021-07-06 11:27:55 +02:00
linux bus/pci: fix leak for unbound devices 2021-07-06 11:27:55 +02:00
windows bus/pci: fix Windows kernel driver categories 2021-03-19 16:23:16 +01:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
pci_common_uio.c drivers/bus: reword slave process as secondary 2020-10-20 13:17:08 +02:00
pci_common.c bus: add device arguments name parsing 2021-09-02 16:58:19 +02:00
pci_params.c bus: add device arguments name parsing 2021-09-02 16:58:19 +02:00
private.h bus: add device arguments name parsing 2021-09-02 16:58:19 +02:00
rte_bus_pci.h bus/pci: update files description 2021-07-06 11:27:55 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00