* [dpdk-test-report] |WARNING| pw95266 [PATCH] [v8, 1/2] devargs: add common key definition
@ 2021-07-06 3:43 dpdklab
0 siblings, 0 replies; only message in thread
From: dpdklab @ 2021-07-06 3:43 UTC (permalink / raw)
To: test-report; +Cc: dpdk-test-reports
[-- Attachment #1: Type: text/plain, Size: 14684 bytes --]
Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/95266
_apply patch failure_
Submitter: Xueming(Steven) Li <xuemingl@nvidia.com>
Date: Monday, July 05 2021 06:45:11
Applied on: CommitID:82a153151f7d0983017b2639fb970e722d0a5a30
Apply patch set 95266 failed:
Checking patch drivers/common/mlx5/mlx5_common.h...
error: while searching for:
int mlx5_get_ifname_sysfs(const char *ibdev_path, char *ifname);
#define MLX5_CLASS_ARG_NAME "class"
enum mlx5_class {
MLX5_CLASS_INVALID,
MLX5_CLASS_NET = RTE_BIT64(0),
error: patch failed: drivers/common/mlx5/mlx5_common.h:208
Checking patch drivers/common/mlx5/mlx5_common_pci.c...
error: while searching for:
static int
parse_class_options(const struct rte_devargs *devargs)
{
const char *key = MLX5_CLASS_ARG_NAME;
struct rte_kvargs *kvlist;
int ret = 0;
error: patch failed: drivers/common/mlx5/mlx5_common_pci.c:118
Checking patch drivers/common/sfc_efx/sfc_efx.c...
error: while searching for:
sfc_efx_dev_class_get(struct rte_devargs *devargs)
{
struct rte_kvargs *kvargs;
const char *key = SFC_EFX_KVARG_DEV_CLASS;
enum sfc_efx_dev_class dev_class = SFC_EFX_DEV_CLASS_NET;
if (devargs == NULL)
error: patch failed: drivers/common/sfc_efx/sfc_efx.c:42
error: while searching for:
if (kvargs == NULL)
return dev_class;
if (rte_kvargs_count(kvargs, key) != 0) {
rte_kvargs_process(kvargs, key, sfc_efx_kvarg_dev_class_handler,
&dev_class);
}
rte_kvargs_free(kvargs);
error: patch failed: drivers/common/sfc_efx/sfc_efx.c:52
Checking patch drivers/common/sfc_efx/sfc_efx.h...
error: while searching for:
extern "C" {
#endif
#define SFC_EFX_KVARG_DEV_CLASS "class"
enum sfc_efx_dev_class {
SFC_EFX_DEV_CLASS_INVALID = 0,
SFC_EFX_DEV_CLASS_NET,
error: patch failed: drivers/common/sfc_efx/sfc_efx.h:19
Checking patch drivers/net/bonding/rte_eth_bond_args.c...
error: while searching for:
PMD_BOND_SOCKET_ID_KVARG,
PMD_BOND_MAC_ADDR_KVARG,
PMD_BOND_AGG_MODE_KVARG,
"driver",
NULL
};
error: patch failed: drivers/net/bonding/rte_eth_bond_args.c:18
Checking patch drivers/net/i40e/i40e_ethdev_vf.c...
error: while searching for:
i40evf_driver_selected(struct rte_devargs *devargs)
{
struct rte_kvargs *kvlist;
const char *key = "driver";
int ret = 0;
if (devargs == NULL)
error: patch failed: drivers/net/i40e/i40e_ethdev_vf.c:1660
error: while searching for:
if (kvlist == NULL)
return 0;
if (!rte_kvargs_count(kvlist, key))
goto exit;
/* i40evf driver selected when there's a key-value pair:
* driver=i40evf
*/
if (rte_kvargs_process(kvlist, key,
i40evf_check_driver_handler, NULL) < 0)
goto exit;
error: patch failed: drivers/net/i40e/i40e_ethdev_vf.c:1670
Checking patch drivers/net/iavf/iavf_ethdev.c...
error: while searching for:
iavf_drv_i40evf_selected(struct rte_devargs *devargs, uint16_t device_id)
{
struct rte_kvargs *kvlist;
const char *key = "driver";
int ret = 0;
if (device_id != IAVF_DEV_ID_VF &&
error: patch failed: drivers/net/iavf/iavf_ethdev.c:2448
error: while searching for:
if (kvlist == NULL)
return 0;
if (!rte_kvargs_count(kvlist, key))
goto exit;
/* i40evf driver selected when there's a key-value pair:
* driver=i40evf
*/
if (rte_kvargs_process(kvlist, key,
iavf_drv_i40evf_check_handler, NULL) < 0)
goto exit;
error: patch failed: drivers/net/iavf/iavf_ethdev.c:2464
Checking patch drivers/net/mlx5/mlx5.c...
error: while searching for:
config->max_dump_files_num = tmp;
} else if (strcmp(MLX5_LRO_TIMEOUT_USEC, key) == 0) {
config->lro.timeout = tmp;
} else if (strcmp(MLX5_CLASS_ARG_NAME, key) == 0) {
DRV_LOG(DEBUG, "class argument is %s.", val);
} else if (strcmp(MLX5_HP_BUF_SIZE, key) == 0) {
config->log_hp_size = tmp;
error: patch failed: drivers/net/mlx5/mlx5.c:1931
error: while searching for:
MLX5_REPRESENTOR,
MLX5_MAX_DUMP_FILES_NUM,
MLX5_LRO_TIMEOUT_USEC,
MLX5_CLASS_ARG_NAME,
MLX5_HP_BUF_SIZE,
MLX5_RECLAIM_MEM,
MLX5_SYS_MEM_EN,
error: patch failed: drivers/net/mlx5/mlx5.c:2002
Checking patch drivers/net/sfc/sfc_kvargs.c...
error: while searching for:
SFC_KVARG_TX_DATAPATH,
SFC_KVARG_FW_VARIANT,
SFC_KVARG_RXD_WAIT_TIMEOUT_NS,
SFC_EFX_KVARG_DEV_CLASS,
NULL,
};
error: patch failed: drivers/net/sfc/sfc_kvargs.c:28
Checking patch drivers/vdpa/mlx5/mlx5_vdpa.c...
error: while searching for:
unsigned long tmp;
int n_cores = sysconf(_SC_NPROCESSORS_ONLN);
if (strcmp(key, "class") == 0)
return 0;
errno = 0;
tmp = strtoul(val, NULL, 0);
error: patch failed: drivers/vdpa/mlx5/mlx5_vdpa.c:588
Checking patch lib/eal/common/eal_common_devargs.c...
error: while searching for:
const char *str;
struct rte_kvargs *kvlist;
} layers[] = {
{ "bus=", NULL, NULL, },
{ "class=", NULL, NULL, },
{ "driver=", NULL, NULL, },
};
struct rte_kvargs_pair *kv = NULL;
struct rte_class *cls = NULL;
error: patch failed: lib/eal/common/eal_common_devargs.c:49
error: while searching for:
if (layers[i].kvlist == NULL)
continue;
kv = &layers[i].kvlist->pairs[0];
if (strcmp(kv->key, "bus") == 0) {
bus = rte_bus_find_by_name(kv->value);
if (bus == NULL) {
RTE_LOG(ERR, EAL, "Could not find bus \"%s\"\n",
error: patch failed: lib/eal/common/eal_common_devargs.c:118
error: while searching for:
ret = -EFAULT;
goto get_out;
}
} else if (strcmp(kv->key, "class") == 0) {
cls = rte_class_find_by_name(kv->value);
if (cls == NULL) {
RTE_LOG(ERR, EAL, "Could not find class \"%s\"\n",
error: patch failed: lib/eal/common/eal_common_devargs.c:126
error: while searching for:
ret = -EFAULT;
goto get_out;
}
} else if (strcmp(kv->key, "driver") == 0) {
/* Ignore */
continue;
}
error: patch failed: lib/eal/common/eal_common_devargs.c:134
Checking patch lib/eal/include/rte_devargs.h...
error: while searching for:
#include <rte_compat.h>
#include <rte_bus.h>
/**
* Type of generic device
*/
error: patch failed: lib/eal/include/rte_devargs.h:25
Applying patch drivers/common/mlx5/mlx5_common.h with 1 reject...
Rejected hunk #1.
Applying patch drivers/common/mlx5/mlx5_common_pci.c with 1 reject...
Rejected hunk #1.
Applying patch drivers/common/sfc_efx/sfc_efx.c with 2 rejects...
Rejected hunk #1.
Rejected hunk #2.
Applying patch drivers/common/sfc_efx/sfc_efx.h with 1 reject...
Rejected hunk #1.
Applying patch drivers/net/bonding/rte_eth_bond_args.c with 1 reject...
Rejected hunk #1.
Applying patch drivers/net/i40e/i40e_ethdev_vf.c with 2 rejects...
Rejected hunk #1.
Rejected hunk #2.
Applying patch drivers/net/iavf/iavf_ethdev.c with 2 rejects...
Rejected hunk #1.
Rejected hunk #2.
Applying patch drivers/net/mlx5/mlx5.c with 2 rejects...
Rejected hunk #1.
Rejected hunk #2.
Applying patch drivers/net/sfc/sfc_kvargs.c with 1 reject...
Rejected hunk #1.
Applying patch drivers/vdpa/mlx5/mlx5_vdpa.c with 1 reject...
Rejected hunk #1.
Applying patch lib/eal/common/eal_common_devargs.c with 4 rejects...
Rejected hunk #1.
Rejected hunk #2.
Rejected hunk #3.
Rejected hunk #4.
Applying patch lib/eal/include/rte_devargs.h with 1 reject...
Rejected hunk #1.
diff a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h (rejected hunks)
@@ -208,8 +208,6 @@ __rte_internal
int mlx5_get_ifname_sysfs(const char *ibdev_path, char *ifname);
-#define MLX5_CLASS_ARG_NAME "class"
-
enum mlx5_class {
MLX5_CLASS_INVALID,
MLX5_CLASS_NET = RTE_BIT64(0),
diff a/drivers/common/mlx5/mlx5_common_pci.c b/drivers/common/mlx5/mlx5_common_pci.c (rejected hunks)
@@ -118,7 +118,7 @@ bus_cmdline_options_handler(__rte_unused const char *key,
static int
parse_class_options(const struct rte_devargs *devargs)
{
- const char *key = MLX5_CLASS_ARG_NAME;
+ const char *key = RTE_DEVARGS_KEY_CLASS;
struct rte_kvargs *kvlist;
int ret = 0;
diff a/drivers/common/sfc_efx/sfc_efx.c b/drivers/common/sfc_efx/sfc_efx.c (rejected hunks)
@@ -42,7 +42,6 @@ enum sfc_efx_dev_class
sfc_efx_dev_class_get(struct rte_devargs *devargs)
{
struct rte_kvargs *kvargs;
- const char *key = SFC_EFX_KVARG_DEV_CLASS;
enum sfc_efx_dev_class dev_class = SFC_EFX_DEV_CLASS_NET;
if (devargs == NULL)
@@ -52,9 +51,9 @@ sfc_efx_dev_class_get(struct rte_devargs *devargs)
if (kvargs == NULL)
return dev_class;
- if (rte_kvargs_count(kvargs, key) != 0) {
- rte_kvargs_process(kvargs, key, sfc_efx_kvarg_dev_class_handler,
- &dev_class);
+ if (rte_kvargs_count(kvargs, RTE_DEVARGS_KEY_CLASS) != 0) {
+ rte_kvargs_process(kvargs, RTE_DEVARGS_KEY_CLASS,
+ sfc_efx_kvarg_dev_class_handler, &dev_class);
}
rte_kvargs_free(kvargs);
diff a/drivers/common/sfc_efx/sfc_efx.h b/drivers/common/sfc_efx/sfc_efx.h (rejected hunks)
@@ -19,8 +19,6 @@
extern "C" {
#endif
-#define SFC_EFX_KVARG_DEV_CLASS "class"
-
enum sfc_efx_dev_class {
SFC_EFX_DEV_CLASS_INVALID = 0,
SFC_EFX_DEV_CLASS_NET,
diff a/drivers/net/bonding/rte_eth_bond_args.c b/drivers/net/bonding/rte_eth_bond_args.c (rejected hunks)
@@ -18,7 +18,7 @@ const char *pmd_bond_init_valid_arguments[] = {
PMD_BOND_SOCKET_ID_KVARG,
PMD_BOND_MAC_ADDR_KVARG,
PMD_BOND_AGG_MODE_KVARG,
- "driver",
+ RTE_DEVARGS_KEY_DRIVER,
NULL
};
diff a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c (rejected hunks)
@@ -1660,7 +1660,6 @@ static int
i40evf_driver_selected(struct rte_devargs *devargs)
{
struct rte_kvargs *kvlist;
- const char *key = "driver";
int ret = 0;
if (devargs == NULL)
@@ -1670,13 +1669,13 @@ i40evf_driver_selected(struct rte_devargs *devargs)
if (kvlist == NULL)
return 0;
- if (!rte_kvargs_count(kvlist, key))
+ if (!rte_kvargs_count(kvlist, RTE_DEVARGS_KEY_DRIVER))
goto exit;
/* i40evf driver selected when there's a key-value pair:
* driver=i40evf
*/
- if (rte_kvargs_process(kvlist, key,
+ if (rte_kvargs_process(kvlist, RTE_DEVARGS_KEY_DRIVER,
i40evf_check_driver_handler, NULL) < 0)
goto exit;
diff a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c (rejected hunks)
@@ -2448,7 +2448,6 @@ static int
iavf_drv_i40evf_selected(struct rte_devargs *devargs, uint16_t device_id)
{
struct rte_kvargs *kvlist;
- const char *key = "driver";
int ret = 0;
if (device_id != IAVF_DEV_ID_VF &&
@@ -2464,13 +2463,13 @@ iavf_drv_i40evf_selected(struct rte_devargs *devargs, uint16_t device_id)
if (kvlist == NULL)
return 0;
- if (!rte_kvargs_count(kvlist, key))
+ if (!rte_kvargs_count(kvlist, RTE_DEVARGS_KEY_DRIVER))
goto exit;
/* i40evf driver selected when there's a key-value pair:
* driver=i40evf
*/
- if (rte_kvargs_process(kvlist, key,
+ if (rte_kvargs_process(kvlist, RTE_DEVARGS_KEY_DRIVER,
iavf_drv_i40evf_check_handler, NULL) < 0)
goto exit;
diff a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c (rejected hunks)
@@ -1931,7 +1931,7 @@ mlx5_args_check(const char *key, const char *val, void *opaque)
config->max_dump_files_num = tmp;
} else if (strcmp(MLX5_LRO_TIMEOUT_USEC, key) == 0) {
config->lro.timeout = tmp;
- } else if (strcmp(MLX5_CLASS_ARG_NAME, key) == 0) {
+ } else if (strcmp(RTE_DEVARGS_KEY_CLASS, key) == 0) {
DRV_LOG(DEBUG, "class argument is %s.", val);
} else if (strcmp(MLX5_HP_BUF_SIZE, key) == 0) {
config->log_hp_size = tmp;
@@ -2002,7 +2002,7 @@ mlx5_args(struct mlx5_dev_config *config, struct rte_devargs *devargs)
MLX5_REPRESENTOR,
MLX5_MAX_DUMP_FILES_NUM,
MLX5_LRO_TIMEOUT_USEC,
- MLX5_CLASS_ARG_NAME,
+ RTE_DEVARGS_KEY_CLASS,
MLX5_HP_BUF_SIZE,
MLX5_RECLAIM_MEM,
MLX5_SYS_MEM_EN,
diff a/drivers/net/sfc/sfc_kvargs.c b/drivers/net/sfc/sfc_kvargs.c (rejected hunks)
@@ -28,7 +28,7 @@ sfc_kvargs_parse(struct sfc_adapter *sa)
SFC_KVARG_TX_DATAPATH,
SFC_KVARG_FW_VARIANT,
SFC_KVARG_RXD_WAIT_TIMEOUT_NS,
- SFC_EFX_KVARG_DEV_CLASS,
+ RTE_DEVARGS_KEY_CLASS,
NULL,
};
diff a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c (rejected hunks)
@@ -588,7 +588,7 @@ mlx5_vdpa_args_check_handler(const char *key, const char *val, void *opaque)
unsigned long tmp;
int n_cores = sysconf(_SC_NPROCESSORS_ONLN);
- if (strcmp(key, "class") == 0)
+ if (strcmp(key, RTE_DEVARGS_KEY_CLASS) == 0)
return 0;
errno = 0;
tmp = strtoul(val, NULL, 0);
diff a/lib/eal/common/eal_common_devargs.c b/lib/eal/common/eal_common_devargs.c (rejected hunks)
@@ -49,9 +49,9 @@ rte_devargs_layers_parse(struct rte_devargs *devargs,
const char *str;
struct rte_kvargs *kvlist;
} layers[] = {
- { "bus=", NULL, NULL, },
- { "class=", NULL, NULL, },
- { "driver=", NULL, NULL, },
+ { RTE_DEVARGS_KEY_BUS "=", NULL, NULL, },
+ { RTE_DEVARGS_KEY_CLASS "=", NULL, NULL, },
+ { RTE_DEVARGS_KEY_DRIVER "=", NULL, NULL, },
};
struct rte_kvargs_pair *kv = NULL;
struct rte_class *cls = NULL;
@@ -118,7 +118,7 @@ rte_devargs_layers_parse(struct rte_devargs *devargs,
if (layers[i].kvlist == NULL)
continue;
kv = &layers[i].kvlist->pairs[0];
- if (strcmp(kv->key, "bus") == 0) {
+ if (strcmp(kv->key, RTE_DEVARGS_KEY_BUS) == 0) {
bus = rte_bus_find_by_name(kv->value);
if (bus == NULL) {
RTE_LOG(ERR, EAL, "Could not find bus \"%s\"\n",
@@ -126,7 +126,7 @@ rte_devargs_layers_parse(struct rte_devargs *devargs,
ret = -EFAULT;
goto get_out;
}
- } else if (strcmp(kv->key, "class") == 0) {
+ } else if (strcmp(kv->key, RTE_DEVARGS_KEY_CLASS) == 0) {
cls = rte_class_find_by_name(kv->value);
if (cls == NULL) {
RTE_LOG(ERR, EAL, "Could not find class \"%s\"\n",
@@ -134,7 +134,7 @@ rte_devargs_layers_parse(struct rte_devargs *devargs,
ret = -EFAULT;
goto get_out;
}
- } else if (strcmp(kv->key, "driver") == 0) {
+ } else if (strcmp(kv->key, RTE_DEVARGS_KEY_DRIVER) == 0) {
/* Ignore */
continue;
}
diff a/lib/eal/include/rte_devargs.h b/lib/eal/include/rte_devargs.h (rejected hunks)
@@ -25,6 +25,30 @@ extern "C" {
#include <rte_compat.h>
#include <rte_bus.h>
+/**
+ * Bus type key in global devargs syntax.
+ *
+ * Legacy devargs parser doesn't use this key as bus type
+ * is resolved as first optional value separated by ":".
+ */
+#define RTE_DEVARGS_KEY_BUS "bus"
+
+/**
+ * Class type key in global devargs syntax.
+ *
+ * Legacy devargs parser doesn't parse class type. PMD driver is
+ * encouraged to use this key to resolve class type.
+ */
+#define RTE_DEVARGS_KEY_CLASS "class"
+
+/**
+ * Driver type key in global devargs syntax.
+ *
+ * Legacy devargs parser doesn't parse driver type. PMD driver is
+ * encouraged to use this key to resolve driver type.
+ */
+#define RTE_DEVARGS_KEY_DRIVER "driver"
+
/**
* Type of generic device
*/
https://lab.dpdk.org/results/dashboard/patchsets/17637/
UNH-IOL DPDK Community Lab
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-06 3:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 3:43 [dpdk-test-report] |WARNING| pw95266 [PATCH] [v8, 1/2] devargs: add common key definition dpdklab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).