[dts] [PATCH V1] tests/sriov_kvm: update negative input commands

Fangfang Wei fangfangx.wei at intel.com
Tue Oct 24 10:16:06 CEST 2017


From: Fangfangx Wei <fangfangx.wei at intel.com>

DPDK-3807: developer said the rule-id can be any value which is set by user.
So setting the invalid rule-id as 256 to test negative input commands.
Because in dpdk the mirror rule-id is uint8_t.

Remove command "set port 0 mirror-rule 2 vlan-mirror 9 dst-pool 1 on".
It's not a invalid command for vlan-mirror is supported now.

Signed-off-by: Fangfangx Wei <fangfangx.wei at intel.com>
---
 tests/TestSuite_sriov_kvm.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py
index 8424b22..440306c 100644
--- a/tests/TestSuite_sriov_kvm.py
+++ b/tests/TestSuite_sriov_kvm.py
@@ -1263,8 +1263,7 @@ class TestSriovKvm(TestCase):
                         "set port 0 vf 34 rxmode ROPE on",
                         "mac_addr add port 0 vf 65 00:55:44:33:22:11",
                         "mac_addr add port 5 vf 0 00:55:44:88:22:11",
-                        "set port 0 mirror-rule 0xf uplink-mirror dst-pool 1 on",
-                        "set port 0 mirror-rule 2 vlan-mirror 9 dst-pool 1 on",
+                        "set port 0 mirror-rule 256 uplink-mirror dst-pool 1 on",
                         "set port 0 mirror-rule 0 downlink-mirror 0xf dst-pool 2 off",
                         "reset port 0 mirror-rule 4",
                         "reset port 0xff mirror-rule 0"]:
-- 
2.7.5



More information about the dts mailing list