From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,huilong" <huilongx.xu@intel.com>
Subject: [dts] [PATCH V1] fix vlan filter test failed
Date: Fri, 22 Sep 2017 13:41:56 +0800 [thread overview]
Message-ID: <1506058916-23860-1-git-send-email-huilongx.xu@intel.com> (raw)
when use packet model send packet, packet model will set default dst mac is broadcast mac,
if we not set packet dst mac. But when send vlan packet, if dst mac is broadcast, the vlan filter
will not work, fortville nic will received all boradcast packet.
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_userspace_ethtool.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index bf3f8e6..a901a47 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -419,6 +419,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
self.dut.send_expect(self.cmd, "EthApp>", 60)
for index in range(len(self.ports)):
port = self.ports[index]
+ dst_mac = self.dut.get_mac_address(port)
# generate random vlan
vlan = random.randrange(0, 4095)
# add vlan on port, record original statistic
@@ -427,6 +428,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
# send correct vlan packet to port
pkt = Packet(pkt_type='VLAN_UDP')
+ pkt.config_layer('ether', {'dst': dst_mac})
pkt.config_layer('vlan', {'vlan': vlan})
tester_port = self.tester.get_local_port(port)
intf = self.tester.get_interface(tester_port)
--
1.9.3
next reply other threads:[~2017-09-22 5:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-22 5:41 xu,huilong [this message]
2017-09-25 13:51 ` Liu, Yong
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=1506058916-23860-1-git-send-email-huilongx.xu@intel.com \
--to=huilongx.xu@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).