summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/devices/virtio/virtio_api.c')
-rw-r--r--src/vnet/devices/virtio/virtio_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/virtio_api.c b/src/vnet/devices/virtio/virtio_api.c
index 82ff791a866..d73e6f877d5 100644
--- a/src/vnet/devices/virtio/virtio_api.c
+++ b/src/vnet/devices/virtio/virtio_api.c
@@ -66,6 +66,10 @@ vl_api_virtio_pci_create_t_handler (vl_api_virtio_pci_create_t * mp)
ap->mac_addr_set = 1;
}
ap->sw_if_index = (u32) ~ 0;
+ if (mp->gso_enabled)
+ ap->gso_enabled = 1;
+ else
+ ap->gso_enabled = 0;
ap->features = clib_net_to_host_u64 (mp->features);
virtio_pci_create_if (vm, ap);