diff options
author | Neale Ranns <nranns@cisco.com> | 2017-08-18 02:34:28 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-08-18 12:50:41 +0000 |
commit | 0714541603ef9dd80d724c38984e723d111e2886 (patch) | |
tree | 3f0b803887afd46e502cd4cbe29b4e7de7b4e6ad /src | |
parent | dafd20b08aed7a0557317b080018881116b81aca (diff) |
Use correct msg ID in the sw-interface-event from TAP and VHOST
Change-Id: I0124fa264f7f390fc7cd9722da59be03116831c5
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/devices/virtio/vhost_user_api.c | 2 | ||||
-rw-r--r-- | src/vnet/unix/tap_api.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/vhost_user_api.c b/src/vnet/devices/virtio/vhost_user_api.c index 3f0aac9eebf..78599241d3e 100644 --- a/src/vnet/devices/virtio/vhost_user_api.c +++ b/src/vnet/devices/virtio/vhost_user_api.c @@ -60,7 +60,7 @@ send_sw_interface_event_deleted (vpe_api_main_t * am, mp = vl_msg_api_alloc (sizeof (*mp)); memset (mp, 0, sizeof (*mp)); - mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_SET_FLAGS); + mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_EVENT); mp->sw_if_index = ntohl (sw_if_index); mp->admin_up_down = 0; diff --git a/src/vnet/unix/tap_api.c b/src/vnet/unix/tap_api.c index 7e812c4fa17..3a64e1009cf 100644 --- a/src/vnet/unix/tap_api.c +++ b/src/vnet/unix/tap_api.c @@ -67,7 +67,7 @@ send_sw_interface_event_deleted (vpe_api_main_t * am, mp = vl_msg_api_alloc (sizeof (*mp)); memset (mp, 0, sizeof (*mp)); - mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_SET_FLAGS); + mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_EVENT); mp->sw_if_index = ntohl (sw_if_index); mp->admin_up_down = 0; |