From: zhuwenhui <wenhuix.zhu@intel.com>
To: dts@dpdk.org
Cc: zhuwenhui <wenhuix.zhu@intel.com>
Subject: [dts] [PATCH V1] ipfrag_ipfrag_fragment modify the max length of packet
Date: Thu, 17 Jan 2019 10:18:57 +0800 [thread overview]
Message-ID: <1547691537-6901-1-git-send-email-wenhuix.zhu@intel.com> (raw)
Original each packet max len: 1452,
current code 7a838c8798a93f changed to aligned to 8 bytes, len is 1456
Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
---
tests/TestSuite_ipfrag.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
index 38e00d7..3a9ffb8 100644
--- a/tests/TestSuite_ipfrag.py
+++ b/tests/TestSuite_ipfrag.py
@@ -200,9 +200,9 @@ l3fwd_ipv4_route_array[] = {\\\n"
for size in pkt_sizes[::burst]:
# simulate to set TG properties
if flag == 'frag':
- # each packet max len: 1518 - 18 (eth) - 40 (ipv6) - 8 (ipv6 ext hdr) = 1452
- expPkts = (size - HEADER_SIZE['eth'] - HEADER_SIZE['ipv6']) / 1452
- if (size - HEADER_SIZE['eth'] - HEADER_SIZE['ipv6']) % 1452:
+ # each packet max len: 1522 - 18 (eth) - 40 (ipv6) - 8 (ipv6 ext hdr) = 1456
+ expPkts = (size - HEADER_SIZE['eth'] - HEADER_SIZE['ipv6']) / 1456
+ if (size - HEADER_SIZE['eth'] - HEADER_SIZE['ipv6']) % 1456:
expPkts += 1
val = 0
else:
@@ -240,7 +240,7 @@ l3fwd_ipv4_route_array[] = {\\\n"
# fragment offset should be correct
frag = pkt.strip_element_layer4("offset")
- self.verify((frag == int((idx - 1) * 181.5)), "Fragment packet frag not match")
+ self.verify((frag == int((idx - 1) * 182)), "Fragment packet frag not match")
idx += 1
def set_up(self):
--
2.17.2
next reply other threads:[~2019-01-17 2:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 2:18 zhuwenhui [this message]
2019-01-17 8:04 ` Yao, BingX Y
2019-01-21 6:33 ` 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=1547691537-6901-1-git-send-email-wenhuix.zhu@intel.com \
--to=wenhuix.zhu@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).