[dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters.
Yash Sharma
ysharma at marvell.com
Thu Jun 27 08:50:24 CEST 2019
From: yash <ysharma at marvell.com>
Signed-off-by: yash <ysharma at 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
More information about the dts
mailing list