[dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to forbid misc packets
Tu, Lijuan
lijuan.tu at intel.com
Tue Apr 23 22:25:12 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhang,yan
> Sent: Sunday, April 21, 2019 7:24 PM
> To: dts at dpdk.org
> Cc: Zhang, YanX A <yanx.a.zhang at 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 at 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
More information about the dts
mailing list