test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063
@ 2020-01-10  5:06 usurekha
  2020-01-10  7:29 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: usurekha @ 2020-01-10  5:06 UTC (permalink / raw)
  To: dts; +Cc: pvukkisala, usurekha

From: usurekha <usurekha@marvell.com>

Modified to required packet length for cavium_a063

Signed-off-by: usurekha <usurekha@marvell.com>
---
 tests/TestSuite_userspace_ethtool.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 248d1d1..53e37d2 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -594,7 +594,10 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
                 pkt.send_pkt(self.tester, tx_port=intf, count=4)
                 rx_pkts, _ = self.strip_portstats(index)
                 self.verify(rx_pkts == ori_rx_pkts + 4, "Packet match mtu not forwarded as expected")
-                pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 + HEADER_SIZE['eth'] + offset)
+                if (self.nic in ["cavium_a063","cavium_a064"]):
+                    pkt = Packet(pkt_type='UDP', pkt_len=mtu + 9 + HEADER_SIZE['eth'] + offset)
+                else:
+                    pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 + HEADER_SIZE['eth'] + offset)
                 pkt.send_pkt(self.tester, tx_port=intf, count=4)
                 rx_pkts_over, _ = self.strip_portstats(index)
                 self.verify(rx_pkts == rx_pkts_over, "Packet over mtu should not be forwarded")
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063
  2020-01-10  5:06 [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063 usurekha
@ 2020-01-10  7:29 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-01-10  7:29 UTC (permalink / raw)
  To: usurekha, dts; +Cc: pvukkisala

applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of
> usurekha@marvell.com
> Sent: Friday, January 10, 2020 1:06 PM
> To: dts@dpdk.org
> Cc: pvukkisala@marvell.com; usurekha <usurekha@marvell.com>
> Subject: [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet
> length for cavium_a063
> 
> From: usurekha <usurekha@marvell.com>
> 
> Modified to required packet length for cavium_a063
> 
> Signed-off-by: usurekha <usurekha@marvell.com>
> ---
>  tests/TestSuite_userspace_ethtool.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index 248d1d1..53e37d2 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -594,7 +594,10 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
>                  pkt.send_pkt(self.tester, tx_port=intf, count=4)
>                  rx_pkts, _ = self.strip_portstats(index)
>                  self.verify(rx_pkts == ori_rx_pkts + 4, "Packet match mtu not
> forwarded as expected")
> -                pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 + HEADER_SIZE['eth']
> + offset)
> +                if (self.nic in ["cavium_a063","cavium_a064"]):
> +                    pkt = Packet(pkt_type='UDP', pkt_len=mtu + 9 +
> HEADER_SIZE['eth'] + offset)
> +                else:
> +                    pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 +
> HEADER_SIZE['eth'] + offset)
>                  pkt.send_pkt(self.tester, tx_port=intf, count=4)
>                  rx_pkts_over, _ = self.strip_portstats(index)
>                  self.verify(rx_pkts == rx_pkts_over, "Packet over mtu should not be
> forwarded")
> --
> 2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-10  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10  5:06 [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063 usurekha
2020-01-10  7:29 ` Tu, Lijuan

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).