* [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters.
@ 2019-06-27 6:50 Yash Sharma
2019-07-03 9:23 ` Tu, Lijuan
0 siblings, 1 reply; 3+ messages in thread
From: Yash Sharma @ 2019-06-27 6:50 UTC (permalink / raw)
To: dts, shshaikh; +Cc: psurana, srane, yash
From: yash <ysharma@marvell.com>
Signed-off-by: yash <ysharma@marvell.com>
---
tests/TestSuite_jumboframes.py | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
index cf4335a..1b5aab5 100644
--- a/tests/TestSuite_jumboframes.py
+++ b/tests/TestSuite_jumboframes.py
@@ -93,12 +93,18 @@ class TestJumboframes(TestCase):
rx_err -= rx_err_ori
if received:
- self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
- and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
- and ((rx_bytes + 4) == pktsize),
- "packet pass assert error")
+ if self.nic.startswith('fastlinq'):
+ self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
+ and ( self.pmdout.check_tx_bytes(tx_bytes, pktsize ))
+ and (rx_bytes == pktsize),
+ "packet pass assert error")
+ else:
+ self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
+ and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
+ and ((rx_bytes + 4) == pktsize),
+ "packet pass assert error")
else:
- self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")
+ self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")
return out
#
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters.
2019-06-27 6:50 [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters Yash Sharma
@ 2019-07-03 9:23 ` Tu, Lijuan
0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-07-03 9:23 UTC (permalink / raw)
To: Yash Sharma, dts, shshaikh; +Cc: psurana, srane
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yash Sharma
> Sent: Thursday, June 27, 2019 2:50 PM
> To: dts@dpdk.org; shshaikh@marvell.com
> Cc: psurana@marvell.com; srane@marvell.com; yash
> <ysharma@marvell.com>
> Subject: [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no
> need of adding extra 4 bytes for fastlinq Adapters.
>
> From: yash <ysharma@marvell.com>
>
> Signed-off-by: yash <ysharma@marvell.com>
> ---
> tests/TestSuite_jumboframes.py | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
>
> diff --git a/tests/TestSuite_jumboframes.py
> b/tests/TestSuite_jumboframes.py index cf4335a..1b5aab5 100644
> --- a/tests/TestSuite_jumboframes.py
> +++ b/tests/TestSuite_jumboframes.py
> @@ -93,12 +93,18 @@ class TestJumboframes(TestCase):
> rx_err -= rx_err_ori
>
> if received:
> - self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
> - and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
> - and ((rx_bytes + 4) == pktsize),
> - "packet pass assert error")
> + if self.nic.startswith('fastlinq'):
> + self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
> + and ( self.pmdout.check_tx_bytes(tx_bytes, pktsize ))
> + and (rx_bytes == pktsize),
> + "packet pass assert error")
> + else:
> + self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
> + and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
> + and ((rx_bytes + 4) == pktsize),
> + "packet pass assert error")
> else:
> - self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")
> + self.verify(rx_err == 1 or tx_pkts == 0, "packet drop
> + assert error")
> return out
>
> #
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters.
2019-06-28 7:13 [dts] [PATCH 1/1] Patch adds preliminary settings to support Qlogic NICs Yash Sharma
@ 2019-06-28 7:13 ` Yash Sharma
0 siblings, 0 replies; 3+ messages in thread
From: Yash Sharma @ 2019-06-28 7:13 UTC (permalink / raw)
To: lijuan.tu; +Cc: dts, yash
From: yash <ysharma@marvell.com>
Signed-off-by: yash <ysharma@marvell.com>
---
tests/TestSuite_jumboframes.py | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
index cf4335a..1b5aab5 100644
--- a/tests/TestSuite_jumboframes.py
+++ b/tests/TestSuite_jumboframes.py
@@ -93,12 +93,18 @@ class TestJumboframes(TestCase):
rx_err -= rx_err_ori
if received:
- self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
- and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
- and ((rx_bytes + 4) == pktsize),
- "packet pass assert error")
+ if self.nic.startswith('fastlinq'):
+ self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
+ and ( self.pmdout.check_tx_bytes(tx_bytes, pktsize ))
+ and (rx_bytes == pktsize),
+ "packet pass assert error")
+ else:
+ self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
+ and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
+ and ((rx_bytes + 4) == pktsize),
+ "packet pass assert error")
else:
- self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")
+ self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")
return out
#
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-03 9:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27 6:50 [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters Yash Sharma
2019-07-03 9:23 ` Tu, Lijuan
2019-06-28 7:13 [dts] [PATCH 1/1] Patch adds preliminary settings to support Qlogic NICs Yash Sharma
2019-06-28 7:13 ` [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters Yash Sharma
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).