* [dts] [PATCH V1] ests/vf_daemon fix vlan issue
@ 2018-03-08 9:25 zhao,meijuan
2018-03-08 17:25 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: zhao,meijuan @ 2018-03-08 9:25 UTC (permalink / raw)
To: dts; +Cc: zhao,meijuan
add enable vlan filter/strip parameter, you can refer to dpdk 8b9bd0
Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
---
tests/TestSuite_vf_daemon.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py
index 87734de..b1ad522 100644
--- a/tests/TestSuite_vf_daemon.py
+++ b/tests/TestSuite_vf_daemon.py
@@ -385,6 +385,8 @@ class Testvf_daemon(TestCase):
random_vlan = random.randint(1, MAX_VLAN - 1)
rx_vlans = [1, random_vlan, MAX_VLAN]
+ self.vm0_testpmd.execute_cmd('vlan set strip on 0')
+ self.vm0_testpmd.execute_cmd('vlan set filter on 0')
self.vm0_testpmd.execute_cmd('set fwd mac')
self.vm0_testpmd.execute_cmd('set verbose 1')
self.vm0_testpmd.execute_cmd('start')
@@ -401,6 +403,8 @@ class Testvf_daemon(TestCase):
out = self.send_and_macstrip(self.vf0_mac, rx_vlan)
self.verify(self.vf0_mac.lower() in out,
"Failed to enable vlan tag!!!")
+ self.vm0_testpmd.execute_cmd('vlan set strip off 0')
+ self.vm0_testpmd.execute_cmd('vlan set filter off 0')
def test_tx_loopback(self):
@@ -635,6 +639,8 @@ class Testvf_daemon(TestCase):
Add/Remove vlan filter for a VF from PF
"""
self.check_vf_link_status()
+ self.vm0_testpmd.execute_cmd('vlan set strip on 0')
+ self.vm0_testpmd.execute_cmd('vlan set filter on 0')
self.vm0_testpmd.execute_cmd('set fwd rxonly')
self.vm0_testpmd.execute_cmd('show port info 0')
self.vm0_testpmd.execute_cmd('set verbose 1')
@@ -685,6 +691,8 @@ class Testvf_daemon(TestCase):
out = self.send_and_pmdout(wrong_mac)
self.verify("dst=%s" % wrong_mac in out,
"Failed to receive untagged packet!!!")
+ self.vm0_testpmd.execute_cmd('vlan set strip off 0')
+ self.vm0_testpmd.execute_cmd('vlan set filter off 0')
def tear_down(self):
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] ests/vf_daemon fix vlan issue
2018-03-08 9:25 [dts] [PATCH V1] ests/vf_daemon fix vlan issue zhao,meijuan
@ 2018-03-08 17:25 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2018-03-08 17:25 UTC (permalink / raw)
To: zhao,meijuan, dts
Thanks, Meijuan. Applied.
On 03/08/2018 05:25 PM, zhao,meijuan wrote:
> add enable vlan filter/strip parameter, you can refer to dpdk 8b9bd0
>
> Signed-off-by: zhao,meijuan<meijuanx.zhao@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-08 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08 9:25 [dts] [PATCH V1] ests/vf_daemon fix vlan issue zhao,meijuan
2018-03-08 17:25 ` Liu, Yong
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).