From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 54968C486 for ; Thu, 23 Jun 2016 11:05:15 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 23 Jun 2016 02:05:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,509,1459839600"; d="scan'208";a="1008029624" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 23 Jun 2016 02:05:14 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u5N95Csw023966; Thu, 23 Jun 2016 17:05:12 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u5N959Du027117; Thu, 23 Jun 2016 17:05:11 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u5N959J7027113; Thu, 23 Jun 2016 17:05:09 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Thu, 23 Jun 2016 17:05:08 +0800 Message-Id: <1466672708-27081-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] tests cloud_filter: fix several issues in test suite X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 09:05:15 -0000 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 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