diff mbox series

[V1,2/2] tests/kernelpf_iavf: change jumbo frames to adpat dpdk

Message ID 20210204090745.21686-3-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series change jumbo frames to adpat dpdk | expand

Commit Message

Xie, WeiX Feb. 4, 2021, 9:07 a.m. UTC
DPDK can receive max packet length: mtu + 14(IP_hearder_len) + 4(CRC) + 4(VLAN header len) + 4(VLAN header len)
For example:
MTU = max_pkg_len - 18
if max_pkg_len is 1518 and MTU is 1500, so DPDK can receive max packet length is 1526.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 1dcbc685..5db1ec00 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -586,7 +586,7 @@  class TestKernelpfIavf(TestCase):
         self.vm_testpmd.execute_cmd("set fwd mac")
         self.vm_testpmd.execute_cmd("start")
         self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1, True)
-        self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False)
+        self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1 + 4 + 4, False)
         self.tester.send_expect("ifconfig %s mtu %s" % (self.tester_intf, ETHER_STANDARD_MTU), "#")
 
     def test_vf_with_jumboframe(self):