From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1 2/2] tests/kernelpf_iavf: change jumbo frames to adpat dpdk
Date: Thu, 4 Feb 2021 17:07:45 +0800 [thread overview]
Message-ID: <20210204090745.21686-3-weix.xie@intel.com> (raw)
In-Reply-To: <20210204090745.21686-1-weix.xie@intel.com>
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 --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):
--
2.17.1
next prev parent reply other threads:[~2021-02-04 9:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 9:07 [dts] [PATCH V1 0/2] " Xie wei
2021-02-04 9:07 ` [dts] [PATCH V1 1/2] tests/vf_jumboframe: " Xie wei
2021-02-04 9:07 ` Xie wei [this message]
2021-02-04 9:13 ` [dts] [PATCH V1 0/2] " Xie, WeiX
2021-02-05 1:55 ` Zhao, HaiyangX
2021-02-19 7:23 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210204090745.21686-3-weix.xie@intel.com \
--to=weix.xie@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).