From: Xueqin Lin <xueqin.lin@intel.com>
To: dts@dpdk.org
Cc: "xueqin.lin" <xueqin.lin@intel.com>
Subject: [dts] [PATCH] tests/vlan: add not match vlan tag check for vlan filer case
Date: Wed, 29 May 2019 21:02:25 -0400 [thread overview]
Message-ID: <1559178145-104573-1-git-send-email-xueqin.lin@intel.com> (raw)
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
next reply other threads:[~2019-05-30 7:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 1:02 Xueqin Lin [this message]
2019-06-05 2:14 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1559178145-104573-1-git-send-email-xueqin.lin@intel.com \
--to=xueqin.lin@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).