test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to forbid misc packets
@ 2019-04-22  2:23 zhang,yan
  2019-04-23 20:25 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: zhang,yan @ 2019-04-22  2:23 UTC (permalink / raw)
  To: dts; +Cc: zhang,yan

Because some miscellaneous packets may appearing on the receiving port, so use command "set promisc all off" to forbid them

Signed-off-by: zhang,yan <yanx.a.zhang@intel.com>
---
 tests/TestSuite_vf_packet_rxtx.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
index 571b11e..8a8816d 100644
--- a/tests/TestSuite_vf_packet_rxtx.py
+++ b/tests/TestSuite_vf_packet_rxtx.py
@@ -134,6 +134,7 @@ class TestVfPacketRxtx(TestCase):
         out = self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
         pmd_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
         self.vm0_testpmd.execute_cmd('set fwd mac')
+        self.vm0_testpmd.execute_cmd("set promisc all off")
         self.vm0_testpmd.execute_cmd('start')
 
         time.sleep(2)
@@ -275,6 +276,7 @@ class TestVfPacketRxtx(TestCase):
         self.vm0_testpmd.execute_cmd('show port info all')
         pmd0_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
         self.vm0_testpmd.execute_cmd('set fwd mac')
+        self.vm0_testpmd.execute_cmd("set promisc all off")
         self.vm0_testpmd.execute_cmd('start')
 
         time.sleep(2)
-- 
2.17.2


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

* Re: [dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to forbid misc packets
  2019-04-22  2:23 [dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to forbid misc packets zhang,yan
@ 2019-04-23 20:25 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-04-23 20:25 UTC (permalink / raw)
  To: Zhang, YanX A, dts; +Cc: Zhang, YanX A

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhang,yan
> Sent: Sunday, April 21, 2019 7:24 PM
> To: dts@dpdk.org
> Cc: Zhang, YanX A <yanx.a.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to
> forbid misc packets
> 
> Because some miscellaneous packets may appearing on the receiving port,
> so use command "set promisc all off" to forbid them
> 
> Signed-off-by: zhang,yan <yanx.a.zhang@intel.com>
> ---
>  tests/TestSuite_vf_packet_rxtx.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/TestSuite_vf_packet_rxtx.py
> b/tests/TestSuite_vf_packet_rxtx.py
> index 571b11e..8a8816d 100644
> --- a/tests/TestSuite_vf_packet_rxtx.py
> +++ b/tests/TestSuite_vf_packet_rxtx.py
> @@ -134,6 +134,7 @@ class TestVfPacketRxtx(TestCase):
>          out = self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
>          pmd_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
>          self.vm0_testpmd.execute_cmd('set fwd mac')
> +        self.vm0_testpmd.execute_cmd("set promisc all off")
>          self.vm0_testpmd.execute_cmd('start')
> 
>          time.sleep(2)
> @@ -275,6 +276,7 @@ class TestVfPacketRxtx(TestCase):
>          self.vm0_testpmd.execute_cmd('show port info all')
>          pmd0_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
>          self.vm0_testpmd.execute_cmd('set fwd mac')
> +        self.vm0_testpmd.execute_cmd("set promisc all off")
>          self.vm0_testpmd.execute_cmd('start')
> 
>          time.sleep(2)
> --
> 2.17.2


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

end of thread, other threads:[~2019-04-23 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-22  2:23 [dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to forbid misc packets zhang,yan
2019-04-23 20:25 ` 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).