Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
API: Cleanup APIs interface.api
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
virtio_api.c
diff --git
a/src/vnet/devices/virtio/virtio_api.c
b/src/vnet/devices/virtio/virtio_api.c
index
6f70b09
..
b2ac471
100644
(file)
--- a/
src/vnet/devices/virtio/virtio_api.c
+++ b/
src/vnet/devices/virtio/virtio_api.c
@@
-97,8
+97,7
@@
virtio_pci_send_sw_interface_event_deleted (vpe_api_main_t * am,
mp->_vl_msg_id = htons (VL_API_SW_INTERFACE_EVENT);
mp->sw_if_index = htonl (sw_if_index);
mp->_vl_msg_id = htons (VL_API_SW_INTERFACE_EVENT);
mp->sw_if_index = htonl (sw_if_index);
- mp->admin_up_down = 0;
- mp->link_up_down = 0;
+ mp->flags = 0;
mp->deleted = 1;
vl_api_send_msg (reg, (u8 *) mp);
}
mp->deleted = 1;
vl_api_send_msg (reg, (u8 *) mp);
}
@@
-108,7
+107,7
@@
vl_api_virtio_pci_delete_t_handler (vl_api_virtio_pci_delete_t * mp)
{
vnet_main_t *vnm = vnet_get_main ();
vlib_main_t *vm = vlib_get_main ();
{
vnet_main_t *vnm = vnet_get_main ();
vlib_main_t *vm = vlib_get_main ();
- virtio_main_t *v
mx
= &virtio_main;
+ virtio_main_t *v
im
= &virtio_main;
int rv = 0;
vnet_hw_interface_t *hw;
virtio_if_t *vif;
int rv = 0;
vnet_hw_interface_t *hw;
virtio_if_t *vif;
@@
-124,7
+123,7
@@
vl_api_virtio_pci_delete_t_handler (vl_api_virtio_pci_delete_t * mp)
goto reply;
}
goto reply;
}
- vif = pool_elt_at_index (v
mx
->interfaces, hw->dev_instance);
+ vif = pool_elt_at_index (v
im
->interfaces, hw->dev_instance);
rv = virtio_pci_delete_if (vm, vif);
rv = virtio_pci_delete_if (vm, vif);