summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_gso.py2
-rw-r--r--test/vpp_papi_provider.py7
2 files changed, 9 insertions, 0 deletions
diff --git a/test/test_gso.py b/test/test_gso.py
index 87626ccf01f..017bb496a0f 100644
--- a/test/test_gso.py
+++ b/test/test_gso.py
@@ -129,6 +129,7 @@ class TestGSO(VppTestCase):
i.resolve_arp()
i.resolve_ndp()
+ self.vapi.feature_gso_enable_disable(self.pg4.sw_if_index)
p42 = (Ether(src=self.pg2.remote_mac, dst=self.pg2.local_mac) /
IP(src=self.pg2.remote_ip4, dst=self.pg4.remote_ip4,
flags='DF') /
@@ -186,6 +187,7 @@ class TestGSO(VppTestCase):
i.resolve_ndp()
self.vapi.sw_interface_set_mtu(self.pg5.sw_if_index, [9000, 0, 0, 0])
+ self.vapi.feature_gso_enable_disable(self.pg1.sw_if_index)
p44 = (Ether(src=self.pg5.remote_mac, dst=self.pg5.local_mac) /
IP(src=self.pg5.remote_ip4, dst=self.pg1.remote_ip4) /
TCP(sport=1234, dport=1234) /
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 12dcf1081ab..d80f2ed4400 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -2050,3 +2050,10 @@ class VppPapiProvider(object):
'sw_if_index': sw_if_index,
'is_enable': is_enable,
})
+
+ def feature_gso_enable_disable(self, sw_if_index, enable_disable=1):
+ return self.api(self.papi.feature_gso_enable_disable,
+ {
+ 'sw_if_index': sw_if_index,
+ 'enable_disable': enable_disable,
+ })