summaryrefslogtreecommitdiffstats
path: root/test/test_gso.py
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-05-05 10:31:17 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-05-05 11:34:40 +0000
commit1ab8b3c6f9fec72cb4db2125ded1f6f004b18815 (patch)
tree01a9fcc9583b326af6f670601369d83cffe6d9fe /test/test_gso.py
parentf5d38e05ac6c9c56311eb4d75ca2644d592ae535 (diff)
gso: fix the make test for ipip
Type: test This commit fixes the make test for GSO/IPIP which are added in following commit id: 84f91fa9c54f82c54b58ea3bf6e9ba22ff735d3a Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I66a57fe195e626b432ff0acba3a5bdf242a7a46e
Diffstat (limited to 'test/test_gso.py')
-rw-r--r--test/test_gso.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/test/test_gso.py b/test/test_gso.py
index 71766b6d8ba..6bd49c06da9 100644
--- a/test/test_gso.py
+++ b/test/test_gso.py
@@ -282,6 +282,11 @@ class TestGSO(VppTestCase):
size = rxs[33][TCP].seq + rxs[33][IPv6].plen - 20
self.assertEqual(size, 65200)
+ self.vapi.feature_gso_enable_disable(self.pg0.sw_if_index,
+ enable_disable=0)
+ self.vapi.feature_gso_enable_disable(self.pg1.sw_if_index,
+ enable_disable=0)
+
def test_gso_vxlan(self):
""" GSO VXLAN test """
self.logger.info(self.vapi.cli("sh int addr"))
@@ -415,6 +420,9 @@ class TestGSO(VppTestCase):
#
self.vxlan2.remove_vpp_config()
+ self.vapi.feature_gso_enable_disable(self.pg0.sw_if_index,
+ enable_disable=0)
+
def test_gso_ipip(self):
""" GSO IPIP test """
self.logger.info(self.vapi.cli("sh int addr"))
@@ -496,7 +504,8 @@ class TestGSO(VppTestCase):
# create IPIP tunnel on VPP pg0. Enable gso feature node on ipip
# tunnel - IPSec use case
#
- self.vapi.feature_gso_enable_disable(self.pg0.sw_if_index, 0)
+ self.vapi.feature_gso_enable_disable(self.pg0.sw_if_index,
+ enable_disable=0)
self.vapi.feature_gso_enable_disable(self.ipip4.sw_if_index)
rxs = self.send_and_expect(self.pg2, [p47], self.pg0, 45)
@@ -516,7 +525,8 @@ class TestGSO(VppTestCase):
#
# disable ipip4
#
- self.vapi.feature_gso_enable_disable(self.ipip4.sw_if_index, 0)
+ self.vapi.feature_gso_enable_disable(self.ipip4.sw_if_index,
+ enable_disable=0)
self.ip4_via_ip4_tunnel.remove_vpp_config()
self.ip6_via_ip4_tunnel.remove_vpp_config()
self.ipip4.remove_vpp_config()
@@ -597,5 +607,8 @@ class TestGSO(VppTestCase):
self.ip6_via_ip6_tunnel.remove_vpp_config()
self.ipip6.remove_vpp_config()
+ self.vapi.feature_gso_enable_disable(self.pg0.sw_if_index,
+ enable_disable=0)
+
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)