From 84f91fa9c54f82c54b58ea3bf6e9ba22ff735d3a Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Thu, 23 Apr 2020 17:59:49 +0200 Subject: gso: add support for IP-IP Type: feature Change-Id: I37752af8496e0042a1da91124f3d94216b39ff11 Signed-off-by: Mohsin Kazmi --- src/vnet/gso/gso.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/vnet/gso/gso.c') diff --git a/src/vnet/gso/gso.c b/src/vnet/gso/gso.c index c741b17bdd4..854bffb39e3 100644 --- a/src/vnet/gso/gso.c +++ b/src/vnet/gso/gso.c @@ -26,30 +26,6 @@ gso_main_t gso_main; int vnet_sw_interface_gso_enable_disable (u32 sw_if_index, u8 enable) { - ethernet_interface_t *eif; - vnet_sw_interface_t *si; - ethernet_main_t *em; - vnet_main_t *vnm; - - vnm = vnet_get_main (); - em = ðernet_main; - si = vnet_get_sw_interface (vnm, sw_if_index); - - /* - * only ethernet HW interfaces are supported at this time - */ - if (si->type != VNET_SW_INTERFACE_TYPE_HARDWARE) - { - return (VNET_API_ERROR_INVALID_VALUE); - } - - eif = ethernet_get_interface (em, si->hw_if_index); - - if (!eif) - { - return (VNET_API_ERROR_FEATURE_DISABLED); - } - vnet_feature_enable_disable ("ip4-output", "gso-ip4", sw_if_index, enable, 0, 0); vnet_feature_enable_disable ("ip6-output", "gso-ip6", sw_if_index, enable, -- cgit 1.2.3-korg