[V1] tests/TestSuite_veb_switch.py modify cores list, vf-vf switch case must contain core0
diff mbox series

Message ID 20201020081110.654223-1-qinx.sun@intel.com
State Changes Requested
Headers show
Series
  • [V1] tests/TestSuite_veb_switch.py modify cores list, vf-vf switch case must contain core0
Related show

Commit Message

Sun, QinX Oct. 20, 2020, 8:11 a.m. UTC
Signed-off-by: sunqin <qinx.sun@intel.com>
---
 tests/TestSuite_veb_switch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tu, Lijuan Oct. 27, 2020, 8:55 a.m. UTC | #1
Subject format should be tests/veb_switch: xxxxxxxx

Why must contain core0, does dpdk require it?

> +        self.pmdout.start_testpmd([0,1,2,3], prefix="test1",
> + ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" %
> + self.vf1_mac)

Check firstly before use them, in case don't have enough resource.

Patch
diff mbox series

diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py
index f51a8d3..62aac72 100644
--- a/tests/TestSuite_veb_switch.py
+++ b/tests/TestSuite_veb_switch.py
@@ -239,7 +239,7 @@  class TestVEBSwitching(TestCase):
         the packets. Check Inter VF-VF MAC switch.
         """
         self.setup_env(driver='default')
-        self.pmdout.start_testpmd("Default", prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac)
+        self.pmdout.start_testpmd([0,1,2,3], prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac)
         self.dut.send_expect("set fwd txonly", "testpmd>")
         self.dut.send_expect("set promisc all off", "testpmd>")