aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/gso/gso.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-04-23 17:59:49 +0200
committerNeale Ranns <nranns@cisco.com>2020-05-05 07:44:12 +0000
commit84f91fa9c54f82c54b58ea3bf6e9ba22ff735d3a (patch)
tree63a762ea0e66b1a0074378f25984eb6450ac9ceb /src/vnet/gso/gso.c
parent5ec6a4ea4440211e468a813ffe0f3173421c9b29 (diff)
gso: add support for IP-IP
Type: feature Change-Id: I37752af8496e0042a1da91124f3d94216b39ff11 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/gso/gso.c')
-rw-r--r--src/vnet/gso/gso.c24
1 files changed, 0 insertions, 24 deletions
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 = &ethernet_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,