Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8f39d55
)
vhost_user: Fix setting MTU using uninitialized variable
71/15071/2
author
Juraj Sloboda
<jsloboda@cisco.com>
Fri, 28 Sep 2018 10:04:26 +0000
(12:04 +0200)
committer
Ole Trøan
<otroan@employees.org>
Tue, 2 Oct 2018 12:19:54 +0000
(12:19 +0000)
Change-Id: I0caa5fd584e3785f237d08f3d3be23e9bfee7605
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
src/vnet/devices/virtio/vhost_user.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/virtio/vhost_user.c
b/src/vnet/devices/virtio/vhost_user.c
index
6259096
..
863cebe
100644
(file)
--- a/
src/vnet/devices/virtio/vhost_user.c
+++ b/
src/vnet/devices/virtio/vhost_user.c
@@
-1359,8
+1359,6
@@
vhost_user_create_ethernet (vnet_main_t * vnm, vlib_main_t * vm,
if (error)
clib_error_report (error);
-
- vnet_sw_interface_set_mtu (vnm, vui->sw_if_index, 9000);
}
/*
@@
-1471,6
+1469,7
@@
vhost_user_create_if (vnet_main_t * vnm, vlib_main_t * vm,
vhost_user_create_ethernet (vnm, vm, vui, hwaddr);
vhost_user_vui_init (vnm, vui, server_sock_fd, sock_filename,
feature_mask, &sw_if_idx);
+ vnet_sw_interface_set_mtu (vnm, vui->sw_if_index, 9000);
if (renumber)
vnet_interface_name_renumber (sw_if_idx, custom_dev_instance);