* [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets
@ 2019-04-18 2:01 zhang,yan
2019-04-18 2:06 ` Rami Rosen
2019-04-18 23:44 ` Tu, Lijuan
0 siblings, 2 replies; 3+ messages in thread
From: zhang,yan @ 2019-04-18 2:01 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_jumboframe.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py
index 32f89d7..dc16479 100644
--- a/tests/TestSuite_vf_jumboframe.py
+++ b/tests/TestSuite_vf_jumboframe.py
@@ -212,6 +212,7 @@ class TestVfJumboFrame(TestCase):
self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_STANDARD_MTU))
self.vm_testpmd.execute_cmd("set fwd mac")
+ self.vm_testpmd.execute_cmd("set promisc all off")
self.vm_testpmd.execute_cmd("start")
self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1)
@@ -232,6 +233,7 @@ class TestVfJumboFrame(TestCase):
self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU))
self.vm_testpmd.execute_cmd("set fwd mac")
+ self.vm_testpmd.execute_cmd("set promisc all off")
self.vm_testpmd.execute_cmd("start")
self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1)
@@ -252,6 +254,7 @@ class TestVfJumboFrame(TestCase):
self.vm_testpmd.start_testpmd("Default", "--port-topology=loop --tx-offloads=0x8000" )
self.vm_testpmd.execute_cmd("set fwd mac")
+ self.vm_testpmd.execute_cmd("set promisc all off")
self.vm_testpmd.execute_cmd("start")
# On igb, for example i350, refer to :DPDK-1117
@@ -280,6 +283,7 @@ class TestVfJumboFrame(TestCase):
self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU))
self.vm_testpmd.execute_cmd("set fwd mac")
+ self.vm_testpmd.execute_cmd("set promisc all off")
self.vm_testpmd.execute_cmd("start")
self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1)
@@ -301,6 +305,7 @@ class TestVfJumboFrame(TestCase):
self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU))
self.vm_testpmd.execute_cmd("set fwd mac")
+ self.vm_testpmd.execute_cmd("set promisc all off")
self.vm_testpmd.execute_cmd("start")
# On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
--
2.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets
2019-04-18 2:01 [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets zhang,yan
@ 2019-04-18 2:06 ` Rami Rosen
2019-04-18 23:44 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Rami Rosen @ 2019-04-18 2:06 UTC (permalink / raw)
To: zhang,yan; +Cc: dts
[-- Attachment #1: Type: text/plain, Size: 45 bytes --]
Reviewed-by: Rami Rosen <ramirose@gmail.com>
[-- Attachment #2: Type: text/html, Size: 165 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets
2019-04-18 2:01 [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets zhang,yan
2019-04-18 2:06 ` Rami Rosen
@ 2019-04-18 23:44 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-04-18 23:44 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: Wednesday, April 17, 2019 7:01 PM
> To: dts@dpdk.org
> Cc: Zhang, YanX A <yanx.a.zhang@intel.com>
> Subject: [dts] [PATCH V2] tests/vf_jumboframe: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_jumboframe.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/TestSuite_vf_jumboframe.py
> b/tests/TestSuite_vf_jumboframe.py
> index 32f89d7..dc16479 100644
> --- a/tests/TestSuite_vf_jumboframe.py
> +++ b/tests/TestSuite_vf_jumboframe.py
> @@ -212,6 +212,7 @@ class TestVfJumboFrame(TestCase):
> self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-
> topology=loop --tx-offloads=0x8000" % (ETHER_STANDARD_MTU))
>
> self.vm_testpmd.execute_cmd("set fwd mac")
> + self.vm_testpmd.execute_cmd("set promisc all off")
> self.vm_testpmd.execute_cmd("start")
>
> self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -232,6
> +233,7 @@ class TestVfJumboFrame(TestCase):
> self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-
> topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU))
>
> self.vm_testpmd.execute_cmd("set fwd mac")
> + self.vm_testpmd.execute_cmd("set promisc all off")
> self.vm_testpmd.execute_cmd("start")
>
> self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -252,6
> +254,7 @@ class TestVfJumboFrame(TestCase):
> self.vm_testpmd.start_testpmd("Default", "--port-topology=loop --tx-
> offloads=0x8000" )
>
> self.vm_testpmd.execute_cmd("set fwd mac")
> + self.vm_testpmd.execute_cmd("set promisc all off")
> self.vm_testpmd.execute_cmd("start")
>
> # On igb, for example i350, refer to :DPDK-1117 @@ -280,6 +283,7 @@
> class TestVfJumboFrame(TestCase):
> self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-
> topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU))
>
> self.vm_testpmd.execute_cmd("set fwd mac")
> + self.vm_testpmd.execute_cmd("set promisc all off")
> self.vm_testpmd.execute_cmd("start")
>
> self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1) @@ -
> 301,6 +305,7 @@ class TestVfJumboFrame(TestCase):
> self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-
> topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU))
>
> self.vm_testpmd.execute_cmd("set fwd mac")
> + self.vm_testpmd.execute_cmd("set promisc all off")
> self.vm_testpmd.execute_cmd("start")
>
> # On 1G NICs, when the jubmo frame MTU set as 9000, the software
> adjust it to 9004.
> --
> 2.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-18 23:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 2:01 [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets zhang,yan
2019-04-18 2:06 ` Rami Rosen
2019-04-18 23:44 ` 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).