[dts] [PATCH V1] ipfrag_ipfrag_fragment modify the max length of packet
Tu, Lijuan
lijuan.tu at intel.com
Mon Jan 21 07:33:27 CET 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhuwenhui
> Sent: Thursday, January 17, 2019 10:19 AM
> To: dts at dpdk.org
> Cc: Zhu, WenhuiX <wenhuix.zhu at intel.com>
> Subject: [dts] [PATCH V1] ipfrag_ipfrag_fragment modify the max length of
> packet
>
> Original each packet max len: 1452,
> current code 7a838c8798a93f changed to aligned to 8 bytes, len is 1456
>
> Signed-off-by: zhuwenhui <wenhuix.zhu at 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
More information about the dts
mailing list