From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B8A5CA034F; Mon, 7 Jun 2021 11:26:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A96654067E; Mon, 7 Jun 2021 11:26:12 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 0F7CD40147 for ; Mon, 7 Jun 2021 11:26:10 +0200 (CEST) IronPort-SDR: 5ac9lZ+DWqq1Wi+9N4PuEK598y/ASh2hQsDcWcuPOU1AOyibPRdLo0qRz/yf6gk631flOEvmcW +tEBJJzf88Iw== X-IronPort-AV: E=McAfee;i="6200,9189,10007"; a="225923153" X-IronPort-AV: E=Sophos;i="5.83,254,1616482800"; d="scan'208";a="225923153" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 02:26:08 -0700 IronPort-SDR: 4xTA0bVvAkBoA/WXE0ysc2UB0dlaLfPvMKAiqv838E+J3dZCFJqqnU1OFR4Aw2PapdMaa9Whle FzdmOtMVLSwg== X-IronPort-AV: E=Sophos;i="5.83,254,1616482800"; d="scan'208";a="551817325" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 02:26:06 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Mon, 7 Jun 2021 17:30:39 +0800 Message-Id: <20210607093039.16756-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] test_plans/metering_and_policing: modify command of adding port meter policy X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" modify test_plan because of dpdk changes of adding port meter policy Signed-off-by: Yan Xia --- .../metering_and_policing_test_plan.rst | 125 +++++++++++------- 1 file changed, 79 insertions(+), 46 deletions(-) diff --git a/test_plans/metering_and_policing_test_plan.rst b/test_plans/metering_and_policing_test_plan.rst index 95648f7a..e3fb308b 100644 --- a/test_plans/metering_and_policing_test_plan.rst +++ b/test_plans/metering_and_policing_test_plan.rst @@ -179,8 +179,9 @@ Test Case 1: ipv4 ACL table RFC2698 GYR :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g y r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -230,8 +231,9 @@ Test Case 2: ipv4 ACL table RFC2698 GYD Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g y d 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -278,8 +280,9 @@ Test Case 3: ipv4 ACL table RFC2698 GDR Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g d r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 132 / sctp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 1 / end testpmd> start @@ -329,8 +332,9 @@ Test Case 4: ipv4 ACL table RFC2698 DYR Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes d y r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 17 / udp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -379,8 +383,9 @@ Test Case 5: ipv4 ACL table RFC2698 DDD Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes d d d 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions drop / end y_actions drop / end r_actions drop / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -426,8 +431,9 @@ Test Case 6: ipv4 with same CBS and PBS GDR Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 500 500 - testpmd> create port meter 2 0 0 yes g d r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 500 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -466,17 +472,22 @@ Test Case 7: ipv4 HASH table RFC2698 Add rules to table, :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 a)GYR - testpmd> create port meter 2 0 0 yes g y r 0 0 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 b)GYD - testpmd> create port meter 2 0 0 yes g y d 0 0 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 c)GDR - testpmd> create port meter 2 0 0 yes g d r 0 0 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 d)DYR - testpmd> create port meter 2 0 0 yes d y r 0 0 0 + testpmd> add port meter policy 2 0 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 e)DDD - testpmd> create port meter 2 0 0 yes d d d 0 0 0 + testpmd> add port meter policy 2 0 g_actions drop / end y_actions drop / end r_actions drop / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -501,9 +512,11 @@ Test Case 8: ipv6 ACL table RFC2698 Add rules to table, :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g y d 0 0 0 - testpmd> create port meter 2 1 0 yes d y r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 + testpmd> add port meter policy 2 1 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 1 0 1 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv6 proto mask 255 src mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff dst mask 0:0:0:0:0:0:0:0 src spec ABCD:EF01:2345:6789:ABCD:EF01:2345:5789 dst spec 0:0:0:0:0:0:0:0 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> flow create 2 group 0 ingress pattern eth / ipv6 proto mask 255 src mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff dst mask 0:0:0:0:0:0:0:0 src spec ABCD:EF01:2345:6789:ABCD:EF01:2345:5789 dst spec 0:0:0:0:0:0:0:0 proto spec 17 / udp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 1 / queue index 1 / end testpmd> start @@ -553,16 +566,24 @@ Test Case 9: multiple meter and profile Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 4 0 3125000000 3125000000 400 500 - testpmd> add port meter profile trtcm_rfc2698 4 1 3125000000 3125000000 300 400 - testpmd> create port meter 4 0 0 yes g y r 0 0 0 - testpmd> create port meter 4 1 0 yes g y d 0 0 0 - testpmd> create port meter 4 2 0 yes g d r 0 0 0 - testpmd> create port meter 4 3 0 yes d y r 0 0 0 - testpmd> create port meter 4 4 1 yes g y d 0 0 0 - testpmd> create port meter 4 5 1 yes g d r 0 0 0 - testpmd> create port meter 4 6 1 yes d y r 0 0 0 - testpmd> create port meter 4 128 1 yes d d d 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 4 0 3125000000 3125000000 400 500 0 + testpmd> add port meter profile trtcm_rfc2698 4 1 3125000000 3125000000 300 400 0 + testpmd> add port meter policy 4 0 g_actions color type green / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 4 0 0 0 yes 0 0 0 + testpmd> add port meter policy 4 1 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 4 1 0 1 yes 0 0 0 + testpmd> add port meter policy 4 2 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 4 2 0 2 yes 0 0 0 + testpmd> add port meter policy 4 3 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 4 3 0 3 yes 0 0 0 + testpmd> add port meter policy 4 4 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 4 4 1 4 yes 0 0 0 + testpmd> add port meter policy 4 5 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 4 5 1 5 yes 0 0 0 + testpmd> add port meter policy 4 6 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 4 6 1 6 yes 0 0 0 + testpmd> add port meter policy 4 7 g_actions drop / end y_actions drop / end r_actions drop / end + testpmd> create port meter 4 7 1 7 yes 0 0 0 testpmd> flow create 4 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 0 dst spec 0 / end actions meter mtr_id 0 / queue index 0 / end testpmd> flow create 4 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 1 dst spec 1 / end actions meter mtr_id 1 / queue index 1 / end testpmd> flow create 4 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 2 / queue index 2 / end @@ -648,8 +669,9 @@ Test Case 10: ipv4 RFC2698 pre-colored red by DSCP table Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g y r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -667,7 +689,8 @@ Test Case 10: ipv4 RFC2698 pre-colored red by DSCP table :: - testpmd> create port meter 2 1 0 yes g y d 0 0 0 + testpmd> add port meter policy 2 1 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 2 1 0 1 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 1 / queue index 0 / end 5. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -684,7 +707,8 @@ Test Case 10: ipv4 RFC2698 pre-colored red by DSCP table :: - testpmd> create port meter 2 2 0 yes g d r 0 0 0 + testpmd> add port meter policy 2 2 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 2 2 0 2 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 2 / queue index 0 / end 7. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -701,7 +725,8 @@ Test Case 10: ipv4 RFC2698 pre-colored red by DSCP table :: - testpmd> create port meter 2 3 0 yes d y r 0 0 0 + testpmd> add port meter policy 2 3 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 3 0 3 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 3 / queue index 0 / end 9. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -735,8 +760,9 @@ Test Case 11: ipv4 RFC2698 pre-colored yellow by DSCP table Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g y r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -754,7 +780,8 @@ Test Case 11: ipv4 RFC2698 pre-colored yellow by DSCP table :: - testpmd> create port meter 2 1 0 yes g y d 0 0 0 + testpmd> add port meter policy 2 1 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 2 1 0 1 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 1 / queue index 0 / end 5. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -772,7 +799,8 @@ Test Case 11: ipv4 RFC2698 pre-colored yellow by DSCP table :: - testpmd> create port meter 2 2 0 yes g d r 0 0 0 + testpmd> add port meter policy 2 2 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 2 2 0 2 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 2 / queue index 0 / end 7. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -790,7 +818,8 @@ Test Case 11: ipv4 RFC2698 pre-colored yellow by DSCP table :: - testpmd> create port meter 2 3 0 yes d y r 0 0 0 + testpmd> add port meter policy 2 3 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 3 0 3 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 3 / queue index 0 / end 9. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -824,8 +853,9 @@ Test Case 12: ipv4 RFC2698 pre-colored green by DSCP table Add rules to table, set CBS to 400 bytes, PBS to 500 bytes :: - testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 - testpmd> create port meter 2 0 0 yes g y r 0 0 0 + testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0 + testpmd> add port meter policy 2 0 g_actions color type green / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 0 0 0 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 0 / queue index 0 / end testpmd> start @@ -843,7 +873,8 @@ Test Case 12: ipv4 RFC2698 pre-colored green by DSCP table :: - testpmd> create port meter 2 1 0 yes g y d 0 0 0 + testpmd> add port meter policy 2 1 g_actions color type green / end y_actions color type yellow / end r_actions drop / end + testpmd> create port meter 2 1 0 1 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 1 / queue index 0 / end 5. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -861,7 +892,8 @@ Test Case 12: ipv4 RFC2698 pre-colored green by DSCP table :: - testpmd> create port meter 2 2 0 yes g d r 0 0 0 + testpmd> add port meter policy 2 2 g_actions color type green / end y_actions drop / end r_actions color type red / end + testpmd> create port meter 2 2 0 2 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 2 / queue index 0 / end 7. Configure the packets with specified src/dst IP address and TCP dport/sport. @@ -879,7 +911,8 @@ Test Case 12: ipv4 RFC2698 pre-colored green by DSCP table :: - testpmd> create port meter 2 3 0 yes d y r 0 0 0 + testpmd> add port meter policy 2 3 g_actions drop / end y_actions color type yellow / end r_actions color type red / end + testpmd> create port meter 2 3 0 3 yes 0 0 0 testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst spec 2 / end actions meter mtr_id 3 / queue index 0 / end 9. Configure the packets with specified src/dst IP address and TCP dport/sport. -- 2.17.1