X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_gso.py;h=06ae7dd2f48192319d5772ed41df9f71f1644916;hb=61717cc38;hp=87626ccf01fb4e3c7819219d00f7f0503808987e;hpb=3f1964d2d2847c5307694fe8daea0a7eef1e2733;p=vpp.git diff --git a/test/test_gso.py b/test/test_gso.py index 87626ccf01f..06ae7dd2f48 100644 --- a/test/test_gso.py +++ b/test/test_gso.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """GSO functional tests""" # @@ -73,7 +73,7 @@ class TestGSO(VppTestCase): IP(src=self.pg0.remote_ip4, dst=self.pg1.remote_ip4, flags='DF') / TCP(sport=1234, dport=1234) / - Raw('\xa5' * 65200)) + Raw(b'\xa5' * 65200)) rxs = self.send_and_expect(self.pg0, [p4], self.pg0) @@ -102,7 +102,7 @@ class TestGSO(VppTestCase): IP(src=self.pg2.remote_ip4, dst=self.pg3.remote_ip4, flags='DF') / TCP(sport=1234, dport=1234) / - Raw('\xa5' * 65200)) + Raw(b'\xa5' * 65200)) rxs = self.send_and_expect(self.pg2, [p41], self.pg3) @@ -129,11 +129,12 @@ 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') / TCP(sport=1234, dport=1234) / - Raw('\xa5' * 65200)) + Raw(b'\xa5' * 65200)) rxs = self.send_and_expect(self.pg2, [p42], self.pg4, 45) size = 0 @@ -157,7 +158,7 @@ class TestGSO(VppTestCase): p43 = (Ether(src=self.pg2.remote_mac, dst=self.pg2.local_mac) / IP(src=self.pg2.remote_ip4, dst=self.pg1.remote_ip4) / TCP(sport=1234, dport=1234) / - Raw('\xa5' * 65200)) + Raw(b'\xa5' * 65200)) rxs = self.send_and_expect(self.pg2, [p43], self.pg1, 119) size = 0 @@ -186,10 +187,11 @@ 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) / - Raw('\xa5' * 65200)) + Raw(b'\xa5' * 65200)) self.pg1.enable_capture() rxs = self.send_and_expect(self.pg5, [p44], self.pg1, 33)