summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/device.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-12-23 11:19:30 +0100
committerDamjan Marion <damarion@cisco.com>2018-12-23 11:45:49 +0100
commitc811663491262fdc01e8309b1f9ecde2a110a84d (patch)
tree2c9b343c9cc7765b6c67999ef4a8dfccc391e905 /src/plugins/avf/device.c
parentc227e4950d3bc791d2ec4a2131916f9b5c40f008 (diff)
avf: add option to specify interface name
Change-Id: I94591d5b103280f8df157819d423fef7ee89d4c8 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/avf/device.c')
-rw-r--r--src/plugins/avf/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c
index d95de2ec892..4f6c869a7f4 100644
--- a/src/plugins/avf/device.c
+++ b/src/plugins/avf/device.c
@@ -1169,6 +1169,7 @@ avf_delete_if (vlib_main_t * vm, avf_device_t * ad)
}
/* *INDENT-ON* */
vec_free (ad->txqs);
+ vec_free (ad->name);
clib_error_free (ad->error);
clib_memset (ad, 0, sizeof (*ad));
@@ -1201,6 +1202,7 @@ avf_create_if (vlib_main_t * vm, avf_create_if_args_t * args)
pool_get (am->devices, ad);
ad->dev_instance = ad - am->devices;
ad->per_interface_next_index = ~0;
+ ad->name = vec_dup (args->name);
if (args->enable_elog)
ad->flags |= AVF_DEVICE_F_ELOG;