* [dts] [PATCH] tests/vlan: add not match vlan tag check for vlan filer case
@ 2019-05-30 1:02 Xueqin Lin
2019-06-05 2:14 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Xueqin Lin @ 2019-05-30 1:02 UTC (permalink / raw)
To: dts; +Cc: xueqin.lin
From: "xueqin.lin" <xueqin.lin@intel.com>
Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
---
tests/TestSuite_vlan.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index 5670beb..977da6e 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -145,6 +145,12 @@ class TestVlan(TestCase):
out = self.get_tcpdump_package()
self.verify(self.vlan in out, "Wrong vlan:" + str(out))
+ notmatch_vlan = self.vlan + 1
+ self.vlan_send_packet(notmatch_vlan)
+ out = self.get_tcpdump_package()
+ self.verify(len(out) == 0, "Received unexpected packet, filter not work!!!")
+ self.verify(notmatch_vlan not in out, "Wrong vlan:" + str(out))
+
self.dut.send_expect("stop", "testpmd> ")
def test_vlan_disable_receipt(self):
--
2.7.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] tests/vlan: add not match vlan tag check for vlan filer case
2019-05-30 1:02 [dts] [PATCH] tests/vlan: add not match vlan tag check for vlan filer case Xueqin Lin
@ 2019-06-05 2:14 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-06-05 2:14 UTC (permalink / raw)
To: Lin, Xueqin, dts; +Cc: Lin, Xueqin
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
> Sent: Thursday, May 30, 2019 9:02 AM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: [dts] [PATCH] tests/vlan: add not match vlan tag check for vlan filer
> case
>
> From: "xueqin.lin" <xueqin.lin@intel.com>
>
> Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
>
> ---
> tests/TestSuite_vlan.py | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py index
> 5670beb..977da6e 100644
> --- a/tests/TestSuite_vlan.py
> +++ b/tests/TestSuite_vlan.py
> @@ -145,6 +145,12 @@ class TestVlan(TestCase):
> out = self.get_tcpdump_package()
> self.verify(self.vlan in out, "Wrong vlan:" + str(out))
>
> + notmatch_vlan = self.vlan + 1
> + self.vlan_send_packet(notmatch_vlan)
> + out = self.get_tcpdump_package()
> + self.verify(len(out) == 0, "Received unexpected packet, filter not
> work!!!")
> + self.verify(notmatch_vlan not in out, "Wrong vlan:" + str(out))
> +
> self.dut.send_expect("stop", "testpmd> ")
>
> def test_vlan_disable_receipt(self):
> --
> 2.7.5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-05 2:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30 1:02 [dts] [PATCH] tests/vlan: add not match vlan tag check for vlan filer case Xueqin Lin
2019-06-05 2:14 ` 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).