Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
gso: remove the interface count
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
pci.c
diff --git
a/src/vnet/devices/virtio/pci.c
b/src/vnet/devices/virtio/pci.c
index
5cbf75f
..
925c6f5
100644
(file)
--- a/
src/vnet/devices/virtio/pci.c
+++ b/
src/vnet/devices/virtio/pci.c
@@
-1207,7
+1207,6
@@
virtio_pci_create_if (vlib_main_t * vm, virtio_pci_create_if_args_t * args)
{
vif->gso_enabled = 1;
hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO;
{
vif->gso_enabled = 1;
hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO;
- vnm->interface_main.gso_interface_count++;
}
}
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MQ))
}
}
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MQ))
@@
-1248,9
+1247,6
@@
virtio_pci_delete_if (vlib_main_t * vm, virtio_if_t * vif)
virtio_pci_legacy_reset (vm, vif);
virtio_pci_legacy_reset (vm, vif);
- if (vif->gso_enabled)
- vnm->interface_main.gso_interface_count--;
-
if (vif->hw_if_index)
{
vnet_hw_interface_set_flags (vnm, vif->hw_if_index, 0);
if (vif->hw_if_index)
{
vnet_hw_interface_set_flags (vnm, vif->hw_if_index, 0);