From: Marvin Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH] tests cloud_filter: fix several issues in test suite
Date: Thu, 23 Jun 2016 17:05:08 +0800 [thread overview]
Message-ID: <1466672708-27081-1-git-send-email-yong.liu@intel.com> (raw)
1. Interface for capture kernel VF should be VF1's.
2. Vector rx function won't show packet detail information by now, so add
parameter to force i40e pmd use bulk rx function.
3. Add outer source mac address setting for some special NICs.
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/tests/TestSuite_cloud_filter.py b/tests/TestSuite_cloud_filter.py
index a41df65..59d0038 100644
--- a/tests/TestSuite_cloud_filter.py
+++ b/tests/TestSuite_cloud_filter.py
@@ -178,6 +178,7 @@ class CloudFilterConfig(object):
"""
Send packet match or not matched cloud filter rules
"""
+ ether_cfg = {'src': self.case.tester_mac}
if match:
if 'iip' in self.cf_rule.keys():
self.pkt.config_layer(
@@ -186,13 +187,14 @@ class CloudFilterConfig(object):
self.pkt.config_layer(
'inner_mac', {'dst': self.cf_rule['imac']})
if 'omac' in self.cf_rule.keys():
- self.pkt.config_layer('ether', {'dst': self.cf_rule['omac']})
+ ether_cfg['dst'] = self.cf_rule['omac']
if 'ivlan' in self.cf_rule.keys():
self.pkt.config_layer(
'inner_vlan', {'vlan': self.cf_rule['ivlan']})
if 'vni' in self.cf_rule.keys():
self.pkt.config_layer('vxlan', {'vni': self.cf_rule['vni']})
+ self.pkt.config_layer('ether', ether_cfg)
self.pkt.config_layer('raw', {'payload': ['01'] * 18})
self.pkt.send_pkt(tx_port=self.case.tester_intf)
@@ -230,6 +232,7 @@ class TestCloudFilter(TestCase):
self.pf_intf = self.dut.ports_info[self.pf_port]['intf']
tester_port = self.tester.get_local_port(self.pf_port)
self.tester_intf = self.tester.get_interface(tester_port)
+ self.tester_mac = self.tester.get_mac(tester_port)
pf_numa = self.dut.get_numa_id(self.pf_port)
self.dut.generate_sriov_vfs_by_port(self.pf_port, 2, driver="default")
@@ -245,8 +248,8 @@ class TestCloudFilter(TestCase):
# bind one vf device to dpdk
self.vf_port0.bind_driver(driver='igb_uio')
- self.vf_intf = self.vf_port0.intf_name
self.vf_port1.bind_driver(driver='i40evf')
+ self.vf_intf = self.vf_port1.intf_name
# bind vf0 to igb_uio and start testpmd
core_num = self.vf_queues + 1
@@ -254,7 +257,7 @@ class TestCloudFilter(TestCase):
self.pmdout = PmdOutput(self.dut)
self.pmdout.start_testpmd(
- cores, "--rxq=%d --txq=%d --portmask=0x1" %
+ cores, "--rxq=%d --txq=%d --portmask=0x1 --enable-rx-cksum" %
(self.vf_queues, self.vf_queues), socket=pf_numa)
# rxonly and verbose enabled
--
1.9.3
reply other threads:[~2016-06-23 9:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1466672708-27081-1-git-send-email-yong.liu@intel.com \
--to=yong.liu@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).