From: zhuwenhui <wenhuix.zhu@intel.com>
To: dts@dpdk.org
Cc: zhuwenhui <wenhuix.zhu@intel.com>
Subject: [dts] [PATCH V1] tests/virtio_user_for_container_networking:make mac take effect
Date: Tue, 17 Sep 2019 16:36:27 +0800 [thread overview]
Message-ID: <1568709388-12092-2-git-send-email-wenhuix.zhu@intel.com> (raw)
In-Reply-To: <1568709388-12092-1-git-send-email-wenhuix.zhu@intel.com>
Specify the mac address to make the receiving packet normal.
Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
---
tests/TestSuite_virtio_user_for_container_networking.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_virtio_user_for_container_networking.py b/tests/TestSuite_virtio_user_for_container_networking.py
index 241d5b0..034587e 100644
--- a/tests/TestSuite_virtio_user_for_container_networking.py
+++ b/tests/TestSuite_virtio_user_for_container_networking.py
@@ -117,8 +117,9 @@ class TestVirtioUserForContainer(TestCase):
self.tester.scapy_execute()
self.tester.pktgen.clear_streams()
+ vm_config = {'mac':{'dst':{'range': 1, 'step': 1, 'action': 'inc'},},}
streams = self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100,
- None, self.tester.pktgen)
+ vm_config, self.tester.pktgen)
_, pps = self.tester.pktgen.measure_throughput(stream_ids=streams)
Mpps = pps / 1000000.0
self.verify(Mpps > 0, '%s can not receive packets of frame size %d' % (self.running_case, frame_size))
--
2.17.2
next prev parent reply other threads:[~2019-09-17 8:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-17 8:36 [dts] [PATCH V1] tests/pvp_share_lib:add set fwd mac zhuwenhui
2019-09-17 8:36 ` zhuwenhui [this message]
2019-09-17 8:44 ` [dts] [PATCH V1] tests/virtio_user_for_container_networking:make mac take effect Zhu, ShuaiX
2019-09-19 6:52 ` Wang, Yinan
2019-09-20 6:37 ` Tu, Lijuan
2019-09-17 8:36 ` [dts] [PATCH V1] tests/pvp_virtio_user_4k_pages:add set fwd mac zhuwenhui
2019-09-17 8:44 ` Zhu, ShuaiX
2019-09-19 6:53 ` Wang, Yinan
2019-09-20 6:35 ` Tu, Lijuan
2019-09-20 6:36 ` Tu, Lijuan
2019-09-17 8:44 ` [dts] [PATCH V1] tests/pvp_share_lib:add " Zhu, ShuaiX
2019-09-19 6:53 ` Wang, Yinan
2019-09-20 6:36 ` 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=1568709388-12092-2-git-send-email-wenhuix.zhu@intel.com \
--to=wenhuix.zhu@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).