diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2018-07-24 14:00:41 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-07-25 12:05:29 +0000 |
commit | 4e6014fc9e8611eef16d9267151f1039ff00c190 (patch) | |
tree | 4fb9652a20399925f57f4a86064ec83b2e38d2d1 /src/plugins/avf/device.c | |
parent | e8b68a3da28aa0a2c5f2b7db8e4a59b787c3c4d1 (diff) |
avf: api fix
avf_create_reply returns software index for the new interface
Change-Id: I8a6b1a1985b072efafa24eb258b1f2cb1bea1110
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/avf/device.c')
-rw-r--r-- | src/plugins/avf/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index be2205b6169..0e9a8bfe517 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -1171,7 +1171,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_t *hw = vnet_get_hw_interface (vnm, ad->hw_if_index); hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_INT_MODE; |