From: Thomas Monjalon Date: Wed, 3 Oct 2018 12:55:11 +0000 (+0200) Subject: devargs: rename enum items with singular form X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3f7a40c67002cc40c29f285a46fdc81704dbb7c2;p=dpdk.git devargs: rename enum items with singular form The enum names are *_params (plural form). And the items are also using the plural form: *_PARAMS_*. It looks more natural to use the singular form *_PARAM_* for items. 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 77b722ba9a..3192e9c967 100644 --- a/drivers/bus/pci/pci_params.c +++ b/drivers/bus/pci/pci_params.c @@ -12,13 +12,13 @@ #include "private.h" enum pci_params { - RTE_PCI_PARAMS_ADDR, - RTE_PCI_PARAMS_MAX, + RTE_PCI_PARAM_ADDR, + RTE_PCI_PARAM_MAX, }; static const char * const pci_params_keys[] = { - [RTE_PCI_PARAMS_ADDR] = "addr", - [RTE_PCI_PARAMS_MAX] = NULL, + [RTE_PCI_PARAM_ADDR] = "addr", + [RTE_PCI_PARAM_MAX] = NULL, }; static int @@ -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, pci_params_keys[RTE_PCI_PARAMS_ADDR], + if (rte_kvargs_process(kvlist, pci_params_keys[RTE_PCI_PARAM_ADDR], &pci_addr_kv_cmp, (void *)(intptr_t)&pdev->addr)) return 1; diff --git a/drivers/bus/vdev/vdev_params.c b/drivers/bus/vdev/vdev_params.c index 842a4684e0..da270f2ec1 100644 --- a/drivers/bus/vdev/vdev_params.c +++ b/drivers/bus/vdev/vdev_params.c @@ -11,11 +11,11 @@ #include "vdev_private.h" enum vdev_params { - RTE_VDEV_PARAMS_MAX, + RTE_VDEV_PARAM_MAX, }; static const char * const vdev_params_keys[] = { - [RTE_VDEV_PARAMS_MAX] = NULL, + [RTE_VDEV_PARAM_MAX] = NULL, }; static int diff --git a/lib/librte_ethdev/rte_class_eth.c b/lib/librte_ethdev/rte_class_eth.c index b6557db977..84b6462910 100644 --- a/lib/librte_ethdev/rte_class_eth.c +++ b/lib/librte_ethdev/rte_class_eth.c @@ -15,11 +15,11 @@ #include "ethdev_private.h" enum eth_params { - RTE_ETH_PARAMS_MAX, + RTE_ETH_PARAM_MAX, }; static const char * const eth_params_keys[] = { - [RTE_ETH_PARAMS_MAX] = NULL, + [RTE_ETH_PARAM_MAX] = NULL, }; struct eth_dev_match_arg {