From: Thomas Monjalon Date: Wed, 3 Oct 2018 12:44:30 +0000 (+0200) Subject: bus/pci: rename devargs parameter id to addr X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4e7a69c9d905647c48cd893bde370d8a5dc84498;p=dpdk.git bus/pci: rename devargs parameter id to addr We could match devices by their PCI id (vendor id, device id, etc). But for now, only matching by PCI address is implemented. The devargs parameter "id" is renamed "addr" to reflect its real meaning. Signed-off-by: Thomas Monjalon Reviewed-by: Andrew Rybchenko --- diff --git a/drivers/bus/pci/pci_params.c b/drivers/bus/pci/pci_params.c index 7630d48457..77b722ba9a 100644 --- a/drivers/bus/pci/pci_params.c +++ b/drivers/bus/pci/pci_params.c @@ -12,12 +12,12 @@ #include "private.h" enum pci_params { - RTE_PCI_PARAMS_ID, + RTE_PCI_PARAMS_ADDR, RTE_PCI_PARAMS_MAX, }; static const char * const pci_params_keys[] = { - [RTE_PCI_PARAMS_ID] = "id", + [RTE_PCI_PARAMS_ADDR] = "addr", [RTE_PCI_PARAMS_MAX] = NULL, }; @@ -47,7 +47,7 @@ pci_dev_match(const struct rte_device *dev, return 0; pdev = RTE_DEV_TO_PCI_CONST(dev); /* if any field does not match. */ - if (rte_kvargs_process(kvlist, "id", + if (rte_kvargs_process(kvlist, pci_params_keys[RTE_PCI_PARAMS_ADDR], &pci_addr_kv_cmp, (void *)(intptr_t)&pdev->addr)) return 1;