diff mbox series

[V1] tests/sriov_kvm: replace legacy filter command

Message ID 20210304164218.2874-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/sriov_kvm: replace legacy filter command | expand

Commit Message

Xie, WeiX March 4, 2021, 4:42 p.m. UTC
replace legacy filter cmd with generic flow cmd.

Signed-off-by: xiewei <weix.xie@intel.com>
---
 tests/TestSuite_sriov_kvm.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Xie, WeiX March 4, 2021, 8:18 a.m. UTC | #1
> -----Original Message-----
> From: Xie, WeiX
> Sent: Friday, March 5, 2021 12:42 AM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [PATCH V1] tests/sriov_kvm: replace legacy filter command

Tested-by: Xie Wei <weix.xie@intel.com>
Tu, Lijuan March 10, 2021, 5:58 a.m. UTC | #2
> replace legacy filter cmd with generic flow cmd.
> 
> Signed-off-by: xiewei <weix.xie@intel.com>

Applied.
diff mbox series

Patch

diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py
index 79a10f81..1a0e3a53 100644
--- a/tests/TestSuite_sriov_kvm.py
+++ b/tests/TestSuite_sriov_kvm.py
@@ -933,10 +933,7 @@  class TestSriovKvm(TestCase):
 
         self.setup_2vm_prerequisite_flag = 0
         for vf_mac in ["00:11:22:33:44:55", "00:55:44:33:22:11"]:
-            if self.nic.startswith('niantic') or self.nic.startswith('sage'):
-                set_mac_cmd = "mac_addr add port %d vf %d %s"
-            elif self.nic.startswith('fortville') or self.nic.startswith('fortpark') or  self.nic.startswith('carlsville'):
-                set_mac_cmd = "set port %d vf %d %s exact-mac-vlan on"
+            set_mac_cmd = "mac_addr add port %d vf %d %s"
             self.host_testpmd.execute_cmd(set_mac_cmd % (port_id_0, vf_num, vf_mac))
 
             vm0_start_stats = self.vm0_testpmd.get_pmd_stats(port_id_0)