From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 2C7321B73A for ; Tue, 24 Oct 2017 10:14:55 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 24 Oct 2017 01:14:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,427,1503385200"; d="scan'208";a="1234498534" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 24 Oct 2017 01:14:54 -0700 From: Fangfang Wei To: dts@dpdk.org Cc: Fangfangx Wei Date: Tue, 24 Oct 2017 16:16:06 +0800 Message-Id: <1508832966-18917-1-git-send-email-fangfangx.wei@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/sriov_kvm: update negative input commands 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: Tue, 24 Oct 2017 08:14:56 -0000 From: Fangfangx Wei 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 --- 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