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 1BF9E41D94 for ; Tue, 28 Feb 2023 03:18:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F5AD40EE4; Tue, 28 Feb 2023 03:18:14 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 8492E40DD8 for ; Tue, 28 Feb 2023 03:18:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PdTn1cWjUp50I++khPu3vCZkegU8T74G0qsvRnxzDffJCgAhyhm7F6UmxRQI6Su4byyF6qwJMT3ms6lVW7DhKbym4B6fToft1RpHz7j9Xq80l+mFmFQ0XUrgpODbg2LRpygZT/N066y/LvEZjPq7WYhT95hWbGlnIev6Z3tvF2PD/iQoXHDW/Z5vreuhC4hIjkXz0egL12JLW0Ge4b54hU652w8tl9wxl0LlQwu4tD8cR6OBP0JLF0ZLolYDd0jfdownnubg4HWQwtU81BHIQxYEdTUiY5+dbusCtg44m1w4w7dJkv+E+h4GFPFuGi4nyoEyg66GWB+Uc7b1FthY1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kvc1jaKoaFwTe+/FtuqyfGHeMdXCzcMVkMoh1MWx+ZY=; b=hXV0LP8nIRxGsxldpdsGXuSAJvDPLBh1c8uhwbp3xXmMbnDswHyzopeYktaP/52QwtCqpBCJGuGYQaoV57qqX2EKuH0DEAneTLwoYyUWfnL1yODPI3Kj6x96QGeRu540+W+QaFBZydWQraBt9sjAr7j11Hy//mLy0XzmSb7zU2QoAZz9k8GkVPPSFFUcXEKpkPG/B/8cazfd5Jjge4LyS2EWgXtap5FlNLNTlhW4EbTxGY63RlJsI8Eb3i0eEOyEcueGx95HUzZVvEvadwyy1iioI5J22AM0X3dwyFz2TPD6LS4VFGLlQ4GXaaL+76j6WwkA9J6I/kIiGwXqquulWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kvc1jaKoaFwTe+/FtuqyfGHeMdXCzcMVkMoh1MWx+ZY=; b=elu+w9ln+42HLe7pYGd2PJ5xd8BT5BkbA2QRUAwhzzl4N6GRAaY8i7FLrF7KL7cyq9GzHyU+Jt1op1Fig3lahm7tMGsCplZwmgDq0gVCB/6weBvy89f10+dQqlGh1I9uvWTs4YvHYjwUbqxZ1zFuQGmS1qzlx2MutAKiIn242TR5D+zVSHgDoBZ3AreGsqjt/99zIKD/ySEaEHY3ldU3/63Cm8SkspGMtjgYD7e1V244oi3IDPdpO4Rb5m8KnitYv+hK4eGyRVGPRk5iOmpisWnYaYH0GW3Ji/GHET/fYnEQqiXOM0Y8cqfZka/9r3dHOjiFNcPjFpMqyQE9WuyDOQ== Received: from DM5PR12MB2405.namprd12.prod.outlook.com (2603:10b6:4:b2::20) by PH8PR12MB7447.namprd12.prod.outlook.com (2603:10b6:510:215::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Tue, 28 Feb 2023 02:18:10 +0000 Received: from DM5PR12MB2405.namprd12.prod.outlook.com ([fe80::d8a4:8800:893b:30ce]) by DM5PR12MB2405.namprd12.prod.outlook.com ([fe80::d8a4:8800:893b:30ce%6]) with mapi id 15.20.6134.029; Tue, 28 Feb 2023 02:18:10 +0000 From: Alexander Kozyrev To: Taha Sami , "users@dpdk.org" CC: Asaf Penso , Suanming Mou Subject: RE: meter_mark action not working with NVIDIA Cx6-Dx Thread-Topic: meter_mark action not working with NVIDIA Cx6-Dx Thread-Index: AQHZSnbBCSp7IMmd9Uq4AgFNnRRj2K7ji4rw Date: Tue, 28 Feb 2023 02:18:10 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM5PR12MB2405:EE_|PH8PR12MB7447:EE_ x-ms-office365-filtering-correlation-id: 73e61281-6fdf-4bb8-0d4a-08db1932097b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pPBWigd1Wi6b2gQxUOyKhfxyKHn2HO5DHJ2e4yasfUccgYzsGK0jGeGmMTzywT/RDiOyi/sXcDgeINUY9EDVo1qnNYLWKVF3cQVZuFFfAB8yKCx9olAUKO4ZvpQAKn3PGHZEaeva2JSTwtZdtzA8/eMjhry7UAO3ygVdwHdVw3WiPlZWJ0xLU5LbmrrjAZkfOi2bn+baKMrQgNBLGBfKQHW0WW/NfXlqCAJbzaQBWu2o0VZTQ14b9wjkwKrRWsHdtpeb6sfqY7rmlSbSmwNRVxYx1R60KkhFIc4nA+pJ1b3ntAYELgDHaQFEJj8ca4rVFiPKf/GOgXBWBvJCSAMJR1zMnWf5smypNmhcvMmhszB7bUN65XMyncy+nkx19tnq6FrQlngqrDCpqsWnTRwzaCKSYG1hiHo3YifVriZ0zMeyEgQQebiqBD/JDg7w5UbvRJuF+7CITlHqgqxWl26rq/nE1Fn/qtP3Lv29VpUDFolbvIRN/ixH3mwiSJ2N/H+ip64iVwNI/BWrNKz82r8fAQzDg/a30UIRhO4wrySTBMJfxdBJOimM0QuAU2OlOHsX4dVNSbPD2dyLY4cYVu18oPQ4xOUJLrl4ZN5YsBfaKEn7UM1nlpvCC9XCiVLGgvAcw9W41itT+vwmMfXBek4zeTIqnw8pqLgixcgTWCJhDm8+kADokyy3YJFfmpxwtOuVhT13WWUUPPgJf1fy8+YKgA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB2405.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(396003)(136003)(376002)(366004)(346002)(451199018)(316002)(83380400001)(54906003)(110136005)(33656002)(122000001)(8676002)(64756008)(38100700002)(4326008)(55016003)(66446008)(6506007)(26005)(478600001)(186003)(9686003)(5660300002)(71200400001)(66476007)(107886003)(7696005)(66946007)(66556008)(76116006)(53546011)(8936002)(52536014)(2906002)(86362001)(41300700001)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1eoZZO8HcjgryKnIRfeekalfiWI5HL/NNxlit9YBAKC9THqHjtBnvAUJu242?= =?us-ascii?Q?ZJW/IfW5r168ybgXnPWotHQ9GZKW22uFxQUVRks5RX6yKByYiWjRi6K8UcHA?= =?us-ascii?Q?f4Y6RgZD2CHQYPl/ijmOjdYiHFSLXfT/2w31bZZnLpkdXLbyIm+UsmCMdNz/?= =?us-ascii?Q?CuEmfAMEseV3Mi3hXspm3o95dgrFOe4eX4FdNQMWaDI5Gmw9qQDDsoj4Vjk6?= =?us-ascii?Q?8zCYoV5idVbFxJHlaXmZQKVMtGbBqlcmO0nVI6e34odkDNUk0kFBTR48+6Hz?= =?us-ascii?Q?OscItMUzB8fWSv3tuFr/B5rV3g42zew7PRJLY5BJGfFw/WaW8Rp7naNPNgMN?= =?us-ascii?Q?5xW6JV8MWVEQmvNrKq+Qb3k4sMMdeD4PTKkRvoMCuEUlPipYv5hCKjrWcV1d?= =?us-ascii?Q?D9L2aCvPTpMuLt2aMIAheQxRxSIAuE+4gJfsVals5Y/K3C0j6m+iEWJifxjj?= =?us-ascii?Q?x/o9Q3BiCz7kWbY9kqOWf455u1E3ra6ov4TAjw0qXZXSfGJlToTPPnj/Z80U?= =?us-ascii?Q?NdnQRzRJW3xw7j2TOOOSaGleeRdRxu6+XzsL0Vsvo9wwr6qbWCf8DmQIR8+A?= =?us-ascii?Q?ZvBjiblch2NxC1+nrzGSXwUCGB2Dv4tAsSFNtnLdZmwNFeg3N1f2nUKUxsw+?= =?us-ascii?Q?Dhwdk9q124mHc13meW/3BLFeR4flTvVQ6n0jv3TangpuEWHrNAAVAD7osBEy?= =?us-ascii?Q?TVugMzpMtioPiauW0C26SWd9u1Nd0J+YfDF2HpWp1vJoL14sBO+lupatxnPC?= =?us-ascii?Q?XppsYhQwS6TfHGqzMcYXvwiqbI/PBBjQFU/jU/ohAPXD3tfPFzANW7dutws5?= =?us-ascii?Q?vF0ySYGrOL2olwAVgH6hvA5EA73U+euUSIAY36f4B79IfCcHCZy3RES44aqn?= =?us-ascii?Q?3s/JN1ZtrGHp5ZH4M5DhGawisJVV5S9O3wKzZMPVo2bLP3Bla0duRKg/FL2u?= =?us-ascii?Q?D5CJr/DlGSfBRCCt+x/aZDdOpPzXb/ae9dGVo0c1J+V547eAwQn0hfR31CkQ?= =?us-ascii?Q?ptLv4t3e55B9sMAW6jGlQs2R4K1PmLGtPtRa5rOJTo35QmtmDKUsMK7lN3pz?= =?us-ascii?Q?JWkCBes2f7JeL7mjAAf5/stwlCzTrrJdvygPmSohGpUY0uq1x1s6MOcssSRq?= =?us-ascii?Q?vocha9J8JlbLH3WI9lEizhgMCFFeNt7PFuRW+x58/e6EpxzldWt804EhZf3P?= =?us-ascii?Q?gmwdUaqzAmcvo3NjF01Dh79Y814a/RZU2JUacpkhJpNlcUh3O06aAAqZQqYD?= =?us-ascii?Q?Fk/vNqLgg4WlL2Rlhcpn/3nOMjBd1zyXn3LuxyO6Q2dHCXK/my02C3YpO+WS?= =?us-ascii?Q?9mOHcrWPnyD/CEU7d+KnqRLRNBotW3omWZWLdKU4E02tEYfIWa4Hn92XhzL6?= =?us-ascii?Q?J38HryuPhNW8OrefLbyMIKOhV2p89Lx4dSsabSPPM3Z9elL9zbRIWIblNBl3?= =?us-ascii?Q?518IgCF1QWp9Wwd44cpcHASF7ryawlL3qc2COcfHLCT/J/RMNk18wlQyLg4F?= =?us-ascii?Q?0wN54cYwei5J2ZV/j6bHPrgjNn4gIfyW9JOCoVp+thbeDxoaMCH2Oe8SQ5L3?= =?us-ascii?Q?h+oBcVMVPjvUWXYL/AGZrXmB/TQHo9xcVR+8WaWd?= Content-Type: multipart/alternative; boundary="_000_DM5PR12MB2405C26ABDF87C8378D86A63AFAC9DM5PR12MB2405namp_" MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB2405.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73e61281-6fdf-4bb8-0d4a-08db1932097b X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2023 02:18:10.0706 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sdrNy6FGaOksKrHV5bRFSxSqhi+sFNa3ZODbADwf+Vb4iqzgh1+ghcTcqypdXUyrL6IjUs515tOiob6Ye0tGqA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7447 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_DM5PR12MB2405C26ABDF87C8378D86A63AFAC9DM5PR12MB2405namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Taha, I don't think your usage of the new template flow API is correct. First, action list in flow rules must match the action list in the template= . Second, you need specify different priorities for the rules in the same gro= up. Please see the corrected flows below to get an idea how it should be organi= zed. P.S. pull returns only completed operations, try again later if you expect = more. port stop 0 flow configure 0 queues_number 9 queues_size 256 meters_number 1 add port meter profile trtcm_rfc2698 0 0 120 250 20 3000 0 flow pattern_template 0 create pattern_template_id 2 relaxed true ingress t= emplate eth / end flow pattern_template 0 create pattern_template_id 4 relaxed true ingress t= emplate meter color mask all / end flow actions_template 0 create actions_template_id 1 template jump group 1 = / end mask jump group 1 / end flow actions_template 0 create actions_template_id 2 template meter_mark / = jump group 2 / end mask meter_mark / jump group 2 / end flow actions_template 0 create actions_template_id 4 template queue index 2= / end mask queue index 2 / end flow actions_template 0 create actions_template_id 5 template queue index 6= / end mask queue index 6 / end flow actions_template 0 create actions_template_id 6 template drop / end ma= sk drop / end flow template_table 0 create table_id 1 group 0 ingress rules_number 10 pat= tern_template 2 actions_template 1 flow template_table 0 create table_id 2 group 1 ingress rules_number 10 pat= tern_template 2 actions_template 2 flow template_table 0 create table_id 4 group 2 priority 0 ingress rules_nu= mber 10 pattern_template 4 actions_template 4 flow template_table 0 create table_id 5 group 2 priority 1 ingress rules_nu= mber 10 pattern_template 4 actions_template 5 flow template_table 0 create table_id 6 group 2 priority 2 ingress rules_nu= mber 10 pattern_template 4 actions_template 6 port start 0 flow queue 0 create 0 template_table 1 pattern_template 0 actions_template = 0 postpone 0 pattern eth / end actions jump group 1 / end flow queue 0 create 0 template_table 2 pattern_template 0 actions_template = 0 postpone 0 pattern eth / end actions meter_mark mtr_profile 0 mtr_init_co= lor green mtr_color_mode 1 mtr_state 1 / jump group 2 / end flow queue 0 create 0 template_table 4 pattern_template 0 actions_template = 0 postpone 0 pattern meter color is green color mask all / end actions queu= e index 2 / end flow queue 0 create 0 template_table 5 pattern_template 0 actions_template = 0 postpone 0 pattern meter color is yellow color mask all / end actions que= ue index 6 / end flow queue 0 create 0 template_table 6 pattern_template 0 actions_template = 0 postpone 0 pattern meter color is red color mask all / end actions drop /= end Regards, Alex From: Taha Sami Sent: February 27, 2023 01:50 To: users@dpdk.org; Alexander Kozyrev ; Suanming Mou <= suanmingm@nvidia.com> Cc: Asaf Penso Subject: meter_mark action not working with NVIDIA Cx6-Dx Hello, We are trying to test the meter mark feature with the testpmd but we are ob= serving some unusual results. We are trying to send different color packets= to different queues but we are not seeing the desired results Supporting INFO MT2892 Family [ConnectX-6 Dx] Driver: mlx5_core Version: 5.8-1.1.2 Firmware-version: 22.35.2000 (MT_0000000436) dpdk- 22.11 Here are our test steps Step 1: Configuring meter_mark in testpmd: sudo ./build/app/dpdk-testpmd -l 0-3 -n 4 -a 0000:4:00.0,dv_flow_en=3D2 --f= ile-prefix ts -- -i --disable-rss --txq=3D9 -rxq=3D9 port stop 0 port configure flow configure 0 queues_number 9 queues_size 256 meters_number 1 Pattern template configure flow pattern_template 0 create pattern_template_id 2 relaxed true ingress t= emplate eth dst is 00:16:3e:31:15:c3 / end flow pattern_template 0 create pattern_template_id 4 relaxed true ingress t= emplate meter color is green / end flow pattern_template 0 create pattern_template_id 5 relaxed true ingress t= emplate meter color is yellow / end flow pattern_template 0 create pattern_template_id 6 relaxed true ingress t= emplate meter color is red / end Action Template configure flow actions_template 0 create actions_template_id 1 template jump group 1 = / end mask jump group 1 / end flow actions_template 0 create actions_template_id 2 template meter_mark mt= r_profile 0 mtr_color_mode 1 mtr_init_color green mtr_state 1 / jump group 2 / end mask meter_mark mtr_p= rofile 0 mtr_color_mode 1 mtr_init_color green mtr_state 1 / jump group 2 /= end flow actions_template 0 create actions_template_id 4 template queue index 2= / end mask queue index 2 / end flow actions_template 0 create actions_template_id 5 template queue index 6= / end mask queue index 6 / end flow actions_template 0 create actions_template_id 6 template drop / end ma= sk drop / end Template Table creation flow template_table 0 create table_id 1 group 0 ingress rules_number 10 pat= tern_template 2 actions_template 1 flow template_table 0 create table_id 2 group 1 ingress rules_number 10 pat= tern_template 2 actions_template 2 flow template_table 0 create table_id 4 group 2 ingress rules_number 10 pat= tern_template 4 actions_template 4 flow template_table 0 create table_id 5 group 2 ingress rules_number 10 pat= tern_template 5 actions_template 5 flow template_table 0 create table_id 6 group 2 ingress rules_number 10 pat= tern_template 6 actions_template 6 port start 0 profile creation for meter mark add port meter profile trtcm_rfc2698 0 0 120 250 20 3000 0 Flow queue creation flow queue 0 create 0 template_table 1 pattern_template 0 actions_template = 0 postpone 0 pattern eth dst is 00:16:3e:31:15:c3 / end actions drop / end flow queue 0 create 0 template_table 2 pattern_template 0 actions_template = 0 postpone 0 pattern eth dst is 00:16:3e:31:15:c3 / end actions drop / end flow queue 0 create 0 template_table 4 pattern_template 0 actions_template = 0 postpone 0 pattern meter color is green / end actions drop / end flow queue 0 create 0 template_table 5 pattern_template 0 actions_template = 0 postpone 0 pattern meter color is yellow / end actions drop / end flow queue 0 create 0 template_table 6 pattern_template 0 actions_template = 0 postpone 0 pattern meter color is red / end actions drop / end Push/Pull operation flow push 0 queue 0 Queue #0 operations pushed flow pull 0 queue 0 Queue #0 pulled 2 operations (0 failed, 2 succeeded) After pulling the flow rules it was observed that only 2 rules were success= fully pulled initially, after sending 2000 packets of 64 bytes from pktgen we saw only 1= packet received on queue 2 even though only 2 rules were successfully pus= hed and pulled from the nic ------- Forward Stats for RX Port=3D 0/Queue=3D 2 -> TX Port=3D 0/Queue=3D = 2 ------- RX-packets: 1 TX-packets: 1 TX-dropped: 0 ---------------------- Forward statistics for port 0 ---------------------- RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 1 TX-dropped: 0 TX-total: 1 ---------------------------------------------------------------------------= - +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 1 TX-dropped: 0 TX-total: 1 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= + after again sending 2000 packets of 64 bytes ---------------------- Forward statistics for port 0 ---------------------- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 ---------------------------------------------------------------------------= - +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= + Regards, Taha --_000_DM5PR12MB2405C26ABDF87C8378D86A63AFAC9DM5PR12MB2405namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Taha, = I don’t think your usage of the new template flow API is correct.

First, ac= tion list in flow rules must match the action list in the template.

Second, y= ou need specify different priorities for the rules in the same group.<= /o:p>

Please se= e the corrected flows below to get an idea how it should be organized.=

P.S. pull= returns only completed operations, try again later if you expect more.

&nbs= p;

port stop= 0

flow conf= igure 0 queues_number 9 queues_size 256 meters_number 1

add port = meter profile trtcm_rfc2698 0 0 120 250 20 3000 0

&nbs= p;

flow patt= ern_template 0 create pattern_template_id 2 relaxed true ingress template e= th / end

flow patt= ern_template 0 create pattern_template_id 4 relaxed true ingress template m= eter color mask all / end

&nbs= p;

flow acti= ons_template 0 create actions_template_id 1 template jump group 1 / end mas= k jump group 1 / end

flow acti= ons_template 0 create actions_template_id 2 template meter_mark / jump grou= p 2 / end mask meter_mark / jump group 2 / end

flow acti= ons_template 0 create actions_template_id 4 template queue index 2 / end ma= sk queue index 2 / end

flow acti= ons_template 0 create actions_template_id 5 template queue index 6 / end ma= sk queue index 6 / end

flow acti= ons_template 0 create actions_template_id 6 template drop / end mask drop /= end

&nbs= p;

flow temp= late_table 0 create table_id 1 group 0 ingress rules_number 10 pattern_temp= late 2 actions_template 1

flow temp= late_table 0 create table_id 2 group 1 ingress rules_number 10 pattern_temp= late 2 actions_template 2

flow temp= late_table 0 create table_id 4 group 2 priority 0 ingress rules_number 10 p= attern_template 4 actions_template 4

flow temp= late_table 0 create table_id 5 group 2 priority 1 ingress rules_number 10 p= attern_template 4 actions_template 5

flow temp= late_table 0 create table_id 6 group 2 priority 2 ingress rules_number 10 p= attern_template 4 actions_template 6

&nbs= p;

port star= t 0

&nbs= p;

flow queu= e 0 create 0 template_table 1 pattern_template 0 actions_template 0 postpon= e 0 pattern eth / end actions jump group 1 / end

flow queu= e 0 create 0 template_table 2 pattern_template 0 actions_template 0 postpon= e 0 pattern eth / end actions meter_mark mtr_profile 0 mtr_init_color green= mtr_color_mode 1 mtr_state 1 / jump group 2 / end

flow queu= e 0 create 0 template_table 4 pattern_template 0 actions_template 0 postpon= e 0 pattern meter color is green color mask all / end actions queue index 2= / end

flow queu= e 0 create 0 template_table 5 pattern_template 0 actions_template 0 postpon= e 0 pattern meter color is yellow color mask all / end actions queue index = 6 / end

flow queu= e 0 create 0 template_table 6 pattern_template 0 actions_template 0 postpon= e 0 pattern meter color is red color mask all / end actions drop / end=

&nbs= p;

Regards,<= o:p>

Alex=

&nbs= p;

From: Taha Sami <taha.sami@dreambigsemi.com>
Sent: February 27, 2023 01:50
To: users@dpdk.org; Alexander Kozyrev <akozyrev@nvidia.com>; S= uanming Mou <suanmingm@nvidia.com>
Cc: Asaf Penso <asafp@nvidia.com>
Subject: meter_mark action not working with NVIDIA Cx6-Dx=

 

Hello,

 

 

We are trying to test the meter mark feature with th= e testpmd but we are observing some unusual results. We are trying to send = different color packets to different queues but we are not seeing the desir= ed results

 

 

Supporting INFO

 

 

    MT2892 Family [ConnectX-6 Dx]

 

    Driver: mlx5_core

 

    Version: 5.8-1.1.2

 

    Firmware-version: 22.35.2000 (MT_00000= 00436)

 

    dpdk- 22.11

 

 

Here are our test steps

 

Step 1: Configur= ing meter_mark in testpmd:

 

sudo ./build/app/dpdk-testpmd -l 0-3 -n 4 -a 0000:4:= 00.0,dv_flow_en=3D2 --file-prefix ts -- -i --disable-rss --txq=3D9 –r= xq=3D9

 

port stop 0

 

port configure

 

flow configure 0 queues_number 9 queues_size 256 met= ers_number 1

 

 

Pattern template= configure

 

 

flow pattern_template 0 create pattern_template_id 2= relaxed true ingress template eth dst is 00:16:3e:31:15:c3 / end

 

flow pattern_template 0 create pattern_template_id 4= relaxed true ingress template meter color is green / end

 

flow pattern_template 0 create pattern_template_id 5= relaxed true ingress template meter color is yellow / end

 

flow pattern_template 0 create pattern_template_id 6= relaxed true ingress template meter color is red / end

 

Action Template configure

 

flow actions_template 0 create actions_template_id 1= template jump group 1 / end mask jump group 1 / end

 

flow actions_template 0 create actions_template_id 2= template meter_mark mtr_profile 0 mtr_color_mode 1

mtr_init_color green mtr_state 1 / jump group 2 / en= d mask meter_mark mtr_profile 0 mtr_color_mode 1 mtr_init_color green mtr_s= tate 1 / jump group 2 / end

 

flow actions_template 0 create actions_template_id 4= template queue index 2 / end mask queue index 2 / end

 

flow actions_template 0 create actions_template_id 5= template queue index 6 / end mask queue index 6 / end

 

flow actions_template 0 create actions_template_id 6= template drop / end mask drop / end

 

Template Table c= reation

 

 

flow template_table 0 create table_id 1 group 0 ingr= ess rules_number 10 pattern_template 2 actions_template 1

 

flow template_table 0 create table_id 2 group 1 ingr= ess rules_number 10 pattern_template 2 actions_template 2

 

flow template_table 0 create table_id 4 group 2 ingr= ess rules_number 10 pattern_template 4 actions_template 4

 

flow template_table 0 create table_id 5 group 2 ingr= ess rules_number 10 pattern_template 5 actions_template 5

 

flow template_table 0 create table_id 6 group 2 ingr= ess rules_number 10 pattern_template 6 actions_template 6

 

port start 0

 

profile creation= for meter mark

 

add port meter profile trtcm_rfc2698 0 0 120 250 20 = 3000 0

 

Flow queue creat= ion

 

flow queue 0 create 0 template_table 1 pattern_templ= ate 0 actions_template 0 postpone 0 pattern eth dst is 00:16:3e:31:15:c3 / = end actions drop / end

 

flow queue 0 create 0 template_table 2 pattern_templ= ate 0 actions_template 0 postpone 0 pattern eth dst is 00:16:3e:31:15:c3 / = end actions drop / end

 

flow queue 0 create 0 template_table 4 pattern_templ= ate 0 actions_template 0 postpone 0 pattern meter color is green / end acti= ons drop / end

 

flow queue 0 create 0 template_table 5 pattern_templ= ate 0 actions_template 0 postpone 0 pattern meter color is yellow / end act= ions drop / end

 

flow queue 0 create 0 template_table 6 pattern_templ= ate 0 actions_template 0 postpone 0 pattern meter color is red / end action= s drop / end

 

 

Push/Pull operat= ion

 

 

flow push 0 queue 0

 

Queue #0 operations pushed

 

 flow pull 0 queue 0

 

Queue #0 pulled 2 operations (0 failed, 2 succeeded)=

 

 

After pulling the flow rules it was observed that= only 2 rules were successfully pulled

 

 

initially, after sending 2000 packets of 64 bytes fr= om pktgen we saw only 1 packet received on queue 2 even though  only 2= rules were successfully pushed and pulled from the nic

 

 

------- Forward Stats for RX Port=3D 0/Queue=3D 2 -&= gt; TX Port=3D 0/Queue=3D 2 -------

 

RX-packets: 1 TX-packets: 1 TX-dropped: 0=

 

 

---------------------- Forward statistics for port 0= ----------------------

 

RX-packets: 1 RX-dropped: 0 RX-total: 1

 

TX-packets: 1 TX-dropped: 0 TX-total: 1

 

----------------------------------------------------= ------------------------

 

 

+++++++++++++++ Accumulated forward statistics for a= ll ports+++++++++++++++

 

RX-packets: 1 RX-dropped: 0 RX-total: 1

 

TX-packets: 1 TX-dropped: 0 TX-total: 1

 

++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++

 

 

after again sending 2000 packets of 64 bytes

 

 

---------------------- Forward statistics for port 0= ----------------------

 

RX-packets: 0 RX-dropped: 0 RX-total: 0

 

TX-packets: 0 TX-dropped: 0 TX-total: 0

 

----------------------------------------------------= ------------------------

 

 

+++++++++++++++ Accumulated forward statistics for a= ll ports+++++++++++++++

 

RX-packets: 0 RX-dropped: 0 RX-total: 0

 

TX-packets: 0 TX-dropped: 0 TX-total: 0

 

++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++

 

Regards,

 

Taha

 

--_000_DM5PR12MB2405C26ABDF87C8378D86A63AFAC9DM5PR12MB2405namp_--