summaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/config.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-11-22 16:25:55 +0000
committerDamjan Marion <damarion@cisco.com>2023-11-25 12:39:25 +0000
commitddf6cec37027547ff7cc61e15bb8080664d41514 (patch)
tree6896d6e6a050a43344a22d0c4bc080db092c9caf /src/vnet/dev/config.c
parent07a62cc236978a0f01ec8be70bdd1d3e8fa27f71 (diff)
dev: initial set of APIs
Type: improvement Change-Id: I9ecbf705d460a1744f36c7005b08097dc58d9522 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/config.c')
-rw-r--r--src/vnet/dev/config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/dev/config.c b/src/vnet/dev/config.c
index 65238710271..8883e727ac2 100644
--- a/src/vnet/dev/config.c
+++ b/src/vnet/dev/config.c
@@ -107,8 +107,7 @@ vnet_dev_config_one_device (vlib_main_t *vm, unformat_input_t *input,
{
vec_foreach (if_args, if_args_vec)
{
- clib_memcpy (if_args->device_id, device_id,
- sizeof (if_args->device_id));
+ if_args->dev_index = args.dev_index;
rv = vnet_dev_api_create_port_if (vm, if_args);
if (rv != VNET_DEV_OK)
break;