X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Favf%2Fdevice.c;h=4bcda0e911d04e69f2fb2bd7ff6335989e235b86;hb=258a189;hp=1d214e18ce78594ea44f5683223b934f91a422a2;hpb=9a02c54e4f3c53cbaceee4cbb30835113f0641ce;p=vpp.git diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index 1d214e18ce7..4bcda0e911d 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -1170,7 +1170,7 @@ avf_create_if (vlib_main_t * vm, avf_create_if_args_t * args) goto error; vnet_sw_interface_t *sw = vnet_get_hw_sw_interface (vnm, ad->hw_if_index); - ad->sw_if_index = sw->sw_if_index; + args->sw_if_index = ad->sw_if_index = sw->sw_if_index; vnet_hw_interface_set_input_node (vnm, ad->hw_if_index, avf_input_node.index);