* [dts] [PATCH] link_flowctrl.py: mac control frame forward is not supported for cavium_a063
@ 2019-06-04 7:38 nareddy
2019-06-05 5:39 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: nareddy @ 2019-06-04 7:38 UTC (permalink / raw)
To: dts; +Cc: fmasood, avijay, Praneeth Reddy
From: Praneeth Reddy <nareddy@marvell.com>
Removed mac control frame paramater in testpmd for cavium_a063.
Marked pause frame enabling test cases as not applicable for cavium_a063.
Signed-off-by: Praneeth Reddy <nareddy@marvell.com>
---
tests/TestSuite_link_flowctrl.py | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flowctrl.py
index 0057b46..8961512 100644
--- a/tests/TestSuite_link_flowctrl.py
+++ b/tests/TestSuite_link_flowctrl.py
@@ -149,7 +149,15 @@ class TestLinkFlowctrl(TestCase):
tgenInput = []
tgenInput.append((tester_tx_port, tester_rx_port, "test.pcap"))
- self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 mac_ctrl_frame_fwd %s autoneg %s %d " % (
+ if (self.nic in ["cavium_a063"]):
+ self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 autoneg %s %d " % (
+ flow_control,
+ flow_control,
+ flow_control,
+ self.rx_port),
+ "testpmd> ")
+ else:
+ self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 mac_ctrl_frame_fwd %s autoneg %s %d " % (
flow_control,
flow_control,
pause_frame_fwd,
@@ -250,10 +258,14 @@ class TestLinkFlowctrl(TestCase):
PAUSE Frames must not be received by testpmd
"""
- pause_frames = [self.build_pause_frame(0),
- self.build_pause_frame(1),
- self.build_pause_frame(2),
- self.build_pause_frame(3)]
+ if (self.nic in ["cavium_a063"]):
+ pause_frames = [self.build_pause_frame(0),
+ self.build_pause_frame(1)]
+ else:
+ pause_frames = [self.build_pause_frame(0),
+ self.build_pause_frame(1),
+ self.build_pause_frame(2),
+ self.build_pause_frame(3)]
for frame in pause_frames:
port_stats = self.pause_frame_test(frame)
@@ -265,10 +277,14 @@ class TestLinkFlowctrl(TestCase):
PAUSE Frames must not be received by testpmd
"""
- pause_frames = [self.build_pause_frame(0),
- self.build_pause_frame(1),
- self.build_pause_frame(2),
- self.build_pause_frame(3)]
+ if (self.nic in ["cavium_a063"]):
+ pause_frames = [self.build_pause_frame(0),
+ self.build_pause_frame(1)]
+ else:
+ pause_frames = [self.build_pause_frame(0),
+ self.build_pause_frame(1),
+ self.build_pause_frame(2),
+ self.build_pause_frame(3)]
for frame in pause_frames:
port_stats = self.pause_frame_test(frame, flow_control='on')
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] link_flowctrl.py: mac control frame forward is not supported for cavium_a063
2019-06-04 7:38 [dts] [PATCH] link_flowctrl.py: mac control frame forward is not supported for cavium_a063 nareddy
@ 2019-06-05 5:39 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-06-05 5:39 UTC (permalink / raw)
To: nareddy, dts; +Cc: fmasood, avijay
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of
> nareddy@marvell.com
> Sent: Tuesday, June 4, 2019 3:39 PM
> To: dts@dpdk.org
> Cc: fmasood@marvell.com; avijay@marvell.com; Praneeth Reddy
> <nareddy@marvell.com>
> Subject: [dts] [PATCH] link_flowctrl.py: mac control frame forward is not
> supported for cavium_a063
>
> From: Praneeth Reddy <nareddy@marvell.com>
>
> Removed mac control frame paramater in testpmd for cavium_a063.
> Marked pause frame enabling test cases as not applicable for cavium_a063.
>
> Signed-off-by: Praneeth Reddy <nareddy@marvell.com>
> ---
> tests/TestSuite_link_flowctrl.py | 34 +++++++++++++++++++++++++---------
> 1 file changed, 25 insertions(+), 9 deletions(-)
>
> diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flowctrl.py
> index 0057b46..8961512 100644
> --- a/tests/TestSuite_link_flowctrl.py
> +++ b/tests/TestSuite_link_flowctrl.py
> @@ -149,7 +149,15 @@ class TestLinkFlowctrl(TestCase):
> tgenInput = []
> tgenInput.append((tester_tx_port, tester_rx_port, "test.pcap"))
>
> - self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1
> mac_ctrl_frame_fwd %s autoneg %s %d " % (
> + if (self.nic in ["cavium_a063"]):
> + self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1
> autoneg %s %d " % (
> + flow_control,
> + flow_control,
> + flow_control,
> + self.rx_port),
> + "testpmd> ")
> + else:
> + self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10
> + 1 mac_ctrl_frame_fwd %s autoneg %s %d " % (
> flow_control,
> flow_control,
> pause_frame_fwd, @@ -250,10 +258,14 @@ class
> TestLinkFlowctrl(TestCase):
> PAUSE Frames must not be received by testpmd
> """
>
> - pause_frames = [self.build_pause_frame(0),
> - self.build_pause_frame(1),
> - self.build_pause_frame(2),
> - self.build_pause_frame(3)]
> + if (self.nic in ["cavium_a063"]):
> + pause_frames = [self.build_pause_frame(0),
> + self.build_pause_frame(1)]
> + else:
> + pause_frames = [self.build_pause_frame(0),
> + self.build_pause_frame(1),
> + self.build_pause_frame(2),
> + self.build_pause_frame(3)]
>
> for frame in pause_frames:
> port_stats = self.pause_frame_test(frame) @@ -265,10 +277,14 @@
> class TestLinkFlowctrl(TestCase):
> PAUSE Frames must not be received by testpmd
> """
>
> - pause_frames = [self.build_pause_frame(0),
> - self.build_pause_frame(1),
> - self.build_pause_frame(2),
> - self.build_pause_frame(3)]
> + if (self.nic in ["cavium_a063"]):
> + pause_frames = [self.build_pause_frame(0),
> + self.build_pause_frame(1)]
> + else:
> + pause_frames = [self.build_pause_frame(0),
> + self.build_pause_frame(1),
> + self.build_pause_frame(2),
> + self.build_pause_frame(3)]
>
> for frame in pause_frames:
> port_stats = self.pause_frame_test(frame, flow_control='on')
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-05 5:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04 7:38 [dts] [PATCH] link_flowctrl.py: mac control frame forward is not supported for cavium_a063 nareddy
2019-06-05 5:39 ` 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).