summaryrefslogtreecommitdiffstats
path: root/test/test_gso.py
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-09-29 15:28:04 +0000
committerBeno�t Ganne <bganne@cisco.com>2024-05-02 14:51:59 +0000
commit7b3339efffb25eacea89d1fb7673bb3647e952f2 (patch)
treea5a8c594b4022682cbe9082a2a9e042da4a79c2c /test/test_gso.py
parentc2db8491e83274726629ce3dc38f64543661c8d8 (diff)
gso: use the header offsets from buffer metadata
Type: improvement Change-Id: I955fbef0e0238cb69307e96cd1c677061737e5f3 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'test/test_gso.py')
-rw-r--r--test/test_gso.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_gso.py b/test/test_gso.py
index 78c5c734660..1db83be50a8 100644
--- a/test/test_gso.py
+++ b/test/test_gso.py
@@ -419,7 +419,7 @@ class TestGSO(VppTestCase):
self.assertEqual(rx[IP].src, self.pg0.local_ip4)
self.assertEqual(rx[IP].dst, self.pg0.remote_ip4)
self.assert_ip_checksum_valid(rx)
- self.assert_udp_checksum_valid(rx, ignore_zero_checksum=False)
+ self.assert_udp_checksum_valid(rx, ignore_zero_checksum=True)
self.assertEqual(rx[VXLAN].vni, 10)
inner = rx[VXLAN].payload
self.assertEqual(rx[IP].len - 20 - 8 - 8, len(inner))
@@ -452,7 +452,7 @@ class TestGSO(VppTestCase):
self.assertEqual(rx[IP].src, self.pg0.local_ip4)
self.assertEqual(rx[IP].dst, self.pg0.remote_ip4)
self.assert_ip_checksum_valid(rx)
- self.assert_udp_checksum_valid(rx, ignore_zero_checksum=False)
+ self.assert_udp_checksum_valid(rx, ignore_zero_checksum=True)
self.assertEqual(rx[VXLAN].vni, 10)
inner = rx[VXLAN].payload
self.assertEqual(rx[IP].len - 20 - 8 - 8, len(inner))