aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/config.c
diff options
context:
space:
mode:
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;