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 2027243D14 for ; Thu, 21 Mar 2024 20:21:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B813842EB6; Thu, 21 Mar 2024 20:19:17 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2054.outbound.protection.outlook.com [40.107.237.54]) by mails.dpdk.org (Postfix) with ESMTP id 2259C42EF7 for ; Thu, 21 Mar 2024 20:18:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UU+kd2bVSfMm/Nnvkf3SPzp5PispcyTK9MMTmkWn1yc9mFbSE8Ma/sG4My2MssCTpBXC/o8EyhGWKcdY+LDJyXgFMLbeV/RG6TGSwlmSghCzdj5yEc4PruIvzz6oK6ccqecax83CTy3DzUOMZDZ5CAFuFmACGLs5SZ0kZsnG7m1Z7vR1DU0RtKjSEqXZmp//aEPNymj3ieOvyeASrmk9g3YUYRO+9Gca+uFXTGG2DS2z6EZDdLjlSpZTfgSkZ1Xw5HmXkHsNnLrvvcIu9H1rEhGqmcZ7sc4zZEbRxu0EfO8xU8Vr+04kWjqoM/AFZNrYyzikn9rCZBtOlGQZTG3TVA== 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=6evx+HQ24H0N34lpDujKQ+K6Q/91tHjw1hRaWSo8G7w=; b=CkmIcpV8GDC3PMkaJGOq9gYzOVp4Ki8FmrEail6aFfDLqMMNIShe6x1Fw8CCz6ri4tIiNlVvCTgWMeRLpE4tDclgg75cXm6Y5Qb4oECDHNqEdaGoULA+LAcaI1hGx7jcXR5jsIEesvXXcv9TNeg0Y2L4YuhIxetqipH0V1nrklFPoVRvUQ3AvbGmSVlJrGM0K2yV94N/XaPcEgaqdwnW4k5LXPG4R86vqeijwXip8frh5vZHGoLGdNEn35VCb2E+VnPV4gIkSyss1fdN2MqQc5oBOp1bhYoET3V7Z1Tyr6fQ4U71QcZSQdJjKTrlhLXoOElxqO4xBHcXbkwgfTcIVg== 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=6evx+HQ24H0N34lpDujKQ+K6Q/91tHjw1hRaWSo8G7w=; b=kBhNz9w9CjkWv8NyFeleJPsxRquwlHmbYnxD8omdxIgFBJ9Al5fcsrWdsZ1JZFC43HNJUXCCq1Hws0bnrSNAY2QvrhlV0QIQT47R8QYmhEh1e8ciZ2FMO30j52+tLUHoRir/WFCCOlTBDTjzGEVYoeDBEWhOXbJzJ3D4tBLSe+0z56ojfefnmDVUyd4RwWbN/JbHhoc9S19zqgtwWEA6RBKLXbOVvbxzExv0brHLR8UAZNdWKCo12Fsy4Xqj/qqAcl2uncygV17QkJI2gQ9m774ZpiFmW3YTMKpTRoJelSm5GB2HV8N2Tch+p3dCmfEMD5WpKBaqSYATvtCTyw3e5g== Received: from SA3PR12MB8811.namprd12.prod.outlook.com (2603:10b6:806:312::18) by DS7PR12MB6048.namprd12.prod.outlook.com (2603:10b6:8:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.24; Thu, 21 Mar 2024 19:18:54 +0000 Received: from SA3PR12MB8811.namprd12.prod.outlook.com ([fe80::d312:f7dc:95e9:5674]) by SA3PR12MB8811.namprd12.prod.outlook.com ([fe80::d312:f7dc:95e9:5674%2]) with mapi id 15.20.7386.031; Thu, 21 Mar 2024 19:18:54 +0000 From: Asaf Penso To: Tao Li , "users@dpdk.org" Subject: Re: Finer matching granularity with async template API Thread-Topic: Finer matching granularity with async template API Thread-Index: AQHae6BPNEwcGktAFESopA2jvtTxHrFCkUNugAAAdQY= Date: Thu, 21 Mar 2024 19:18:54 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: SA3PR12MB8811:EE_|DS7PR12MB6048:EE_ x-ms-office365-filtering-correlation-id: 2d0d3c83-1b11-4924-a9b3-08dc49dbc00b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mCEPNUR7KBfv4COfAZftjIyP8GtssiV3xcFw1BLBFxTrziQtDFuDvd2Yc8NStZuALYx812vsfGCYfcMNhtWXAKMzE1F4Rk3aNjtv5uiopcnZt6sD2x6NJJhOaKwmBBs48MgZbmz7YQT/xj3Sb4JybPxINVrCmskVstTk6zEtQ++yN0H95PLXzja1QYZDbEAs6myaxOT7c1/XoWZ96NBd4CtTa6Xx+3O4RqrhaRrWx0TDOVBvgye+oBByc0r9Mub97D3DuPS/E+DjALeIHYgUZdXDoSGU5VM6iNopzs59P7qlF7PFu6BEt8EMhF9jTUMJJZnCwQFgiKUUAR6fDZLcQ3XJoX6pvFKk2grSD6SsMdf/hThCKqO9+qNfmlciBljGMwgZispofk2jKqJ6513B4LpclL8XcsVlviA8B1/sIukXubKJyPY+NBeKwmi3bPO1pktKKefVe1IdFDZCaMWKLRRT16PJ+sZW4lrS6SZxhQqa9jdB08NdaQFnwXL3CdFQ0Ge/w6W6xTCSZcF/uXAvjSGwg/nhP02Zlp2ENQ4POZGc6cdUGjeAmf4RRFtlyjJ/zRgSEAw5kQBJxWC1Qjvs1xwyCW8jxG5Pt6MrSKS4I+zSJSk5bvud/ijiC3XsVHYBu70xgWmn/OP2UXLo56dUvqaOR3CuyH64RvZcPtivHTziYkXb8948qr9y51500hll1MDOIfwA61DdHjCdklTntxQfnHRKJBDrMzRtQHj5ajw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA3PR12MB8811.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(376005)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?6MGmAoXexJs8H8v3en/R9VSeybZrHoT628X6oNAM8Yml47hH62S974K7?= =?Windows-1252?Q?H9SfstimHmYWSNpbtmpdlhGmdArWiwryyyeYMVlhsGJPJ47cE1017T/D?= =?Windows-1252?Q?XO7aGTVZzu1EOXd5pGxdTHmRiGX4Y+t6O/y2y5xcZMwsTMEUvrl4cGyP?= =?Windows-1252?Q?jRN9k5QjCiXu0wQjFLqZZucUBJupZcgnVKclZ4+CjLLjGiU+BIIEjXP4?= =?Windows-1252?Q?rnikwzbUfcI6f5ZDoHy/Bq7PLMqUvDrfjzPCTzYPnIPJ5FSN6hKOCaSS?= =?Windows-1252?Q?6JfmDV85LC+lv04APZvWI58xVd5rGA7nXvUMkW8LUOJuXuBwLIdgA9bx?= =?Windows-1252?Q?1pxKTRHnUHOhHBuhdWuJRoQmBgEE2q3/4saVV8YiFO3L0CyublzksR1e?= =?Windows-1252?Q?TgoY6lNP6U0Jr3mRqIPd+IX58dACnOzOh/Z4j80M7hhGz8y4YryscGsb?= =?Windows-1252?Q?QG5EwCxFenFdqs6VefKdQfOnkFk92hRRXOH/UqktpUodtgYbFJHFYIZY?= =?Windows-1252?Q?Sf5uqmmxCTUoHrJva7G2uU4QFfa+gx2yMtqXxEUS31K+lZZL6zCJL0/W?= =?Windows-1252?Q?7vuF8yFsLs97pkYYuXv7lFpWrL5MgexW30Vsw8nXzfykWOEp6pFrmGni?= =?Windows-1252?Q?bsTXi8sAHJsm0ZjAim7jmG8ATU/8JgGMBs92qzVJ38XOvOWugqw+mP2a?= =?Windows-1252?Q?HZstWEYqx8O+psgIfBlLx4EyTEZh45uEj5U9PB1FOeH7K6POprBXktal?= =?Windows-1252?Q?reSUXqckFoYiK47enRFT8u8V5/2eh4JIqJjJN48gV5Q1yTPKBWf7rUbg?= =?Windows-1252?Q?/8ZLy8zDJM0mcFU5+AGFO9sONIOm+e6LeqAkHZZO9QsBd6vrK1JgtESG?= =?Windows-1252?Q?pgCTPQ37fU52QzhQCG1mefoyJGAfnUdmCt34LbbV75c+UA8X4sK5KSFZ?= =?Windows-1252?Q?UUgNOZFo0YBuETT35nm4kmHqreBmC+fG3Z7GjXsbADnIX9x09dAm625g?= =?Windows-1252?Q?tplxhgUewHZCwb3jpQQzJiPOt/kGokSmCbD/a8RnHgLDqiLX0WJRIG2u?= =?Windows-1252?Q?24klEGMdRoSldmgaba4MEk30n9df9VFJVuHnkFa3JzZRGacxpEfGgHiH?= =?Windows-1252?Q?5wn/R8xhiFTnQA/QjDMOUlBPmlOiCIFWA3PQ/YeID5LPWRkbTJjyX8rC?= =?Windows-1252?Q?lGZnxfUY8EYAeQzAypwIrD7WhcxsDmxHkzlqvyjwwrlMlX+g9UBKste5?= =?Windows-1252?Q?qpPrJkF7H3SnnSaZsQs1fW7s3rpTQm/nSDnpgKD7C0UjpA1HJJdOm0Rm?= =?Windows-1252?Q?2vlRXwjAIKwub7VOzxJcCosrm57ZxUcG5+DCkhlsGAa6iIuMoEIhQnB/?= =?Windows-1252?Q?ALzQs8CC4wLEFsZ1BjdtEQeYw0DI5BfCKfPDcWiTTS1NRp8wlL0+SnBK?= =?Windows-1252?Q?rCGP56dvXuE7JiKwVwqGtDrqupAqxuC2gtJdtIrMdl9h2oOhE2yA4O3O?= =?Windows-1252?Q?F35nfBp4h0YL4oI9oNmYc3gyJEjP9/ybpqFitAgaedzBkaVS4Ppt1Bc/?= =?Windows-1252?Q?ohk30O1AVBHjhJOpyv1ALJSjrUUJdHvpaAnKZ8sxik21dW49yHArJqKB?= =?Windows-1252?Q?Q7MG2zlz4r3yGrTNoAPQRvr7aVhFxM4nPPK2VhTB4gyLfqRzx2bxkjnb?= =?Windows-1252?Q?/AvvStDzQQ+L6rCdYyzHQsFPQ3/Y1+zR?= Content-Type: multipart/alternative; boundary="_000_SA3PR12MB881122DD9344AD533DCD65CFCD322SA3PR12MB8811namp_" MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR12MB8811.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d0d3c83-1b11-4924-a9b3-08dc49dbc00b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2024 19:18:54.7968 (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: pPKrncFKUnPgGNxLVK5BaQq+/a9kCBTwDppzZo0T4q1eRyvuAXbUU6Qbfy8Ya+3+pHMUXNcUIP1nXl2TdUqp1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6048 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_SA3PR12MB881122DD9344AD533DCD65CFCD322SA3PR12MB8811namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable BTW, In the non working example I see ipv6 / ipv4 / ICMP. Was this your intentio= n or did you mean ipv6 / ICMP? Regards, Asaf Penso ________________________________ From: Asaf Penso Sent: Thursday, March 21, 2024 9:17:04 PM To: Tao Li ; users@dpdk.org Subject: Re: Finer matching granularity with async template API Hello Tao, What is the output / error message you get? Regards, Asaf Penso ________________________________ From: Tao Li Sent: Thursday, March 21, 2024 5:44:00 PM To: users@dpdk.org Subject: Finer matching granularity with async template API Hi all, I am using async template API to install flow rules to perform actions on p= ackets to achieve IP(v4)inIP(v6) tunnelling. Currently I am facing an issue= where I cannot perform incoming traffic matching with finer granularity. T= he test-pmd commands in use are as following: port stop all flow configure 0 queues_number 4 queues_size 64 counters_number 0 aging_cou= nters_number 0 meters_number 0 flags 0 # PF0 flow configure 1 queues_number 4 queues_size 64 counters_number 0 aging_cou= nters_number 0 meters_number 0 flags 0 flow configure 2 queues_number 4 queues_size 64 counters_number 0 aging_cou= nters_number 0 meters_number 0 flags 0 flow configure 3 queues_number 4 queues_size 64 counters_number 0 aging_cou= nters_number 0 meters_number 0 flags 0 # PF1V0 port start all set verbose 1 flow pattern_template 0 create transfer relaxed no pattern_template_id 10 = template represented_port ethdev_port_id is 0 / eth / ipv6 / ipv4 / icmp = / end set raw_decap 0 eth / ipv6 / end_set set raw_encap 0 eth src is 11:22:33:44:55:66 dst is 66:9d:a7:fd:fb:43 type = is 0x0800 / end_set flow actions_template 0 create transfer actions_template_id 10 template r= aw_decap index 0 / raw_encap index 0 / represented_port / end mask raw_deca= p index 0 / raw_encap index 0 / represented_port / end flow template_table 0 create group 0 priority 0 transfer wire_orig table_= id 5 rules_number 8 pattern_template 10 actions_template 10 flow queue 0 create 0 template_table 5 pattern_template 0 actions_template = 0 postpone no pattern represented_port ethdev_port_id is 0 / eth / ipv6 /= ipv4 / icmp / end actions raw_decap index 0 / raw_encap index 0 / repres= ented_port ethdev_port_id 3 / end flow push 0 queue 0 Once I remove matching patterns for the inner packet headers( ipv4 / icmp) = as following, I can see the processed packets inside VMs using tcpdump. =85 flow pattern_template 0 create transfer relaxed no pattern_template_id 10 = template represented_port ethdev_port_id is 0 / eth / ipv6 / end =85 flow queue 0 create 0 template_table 5 pattern_template 0 actions_template = 0 postpone no pattern represented_port ethdev_port_id is 0 / eth / ipv6 = / end actions raw_decap index 0 / raw_encap index 0 / represented_port eth= dev_port_id 3 / end =85 Similar combination works when using the synchronous rte_flow API. Any comm= ent or suggestion on this issue is much appreciated. Many thanks in advance= . Best regards, Tao --_000_SA3PR12MB881122DD9344AD533DCD65CFCD322SA3PR12MB8811namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
BTW,
In the non working example I see ipv6 / ipv4 / ICMP. Was = this your intention or did you mean ipv6 / ICMP?

Regards,
Asaf Penso

From: Asaf Penso <asafp@= nvidia.com>
Sent: Thursday, March 21, 2024 9:17:04 PM
To: Tao Li <byteocean@hotmail.com>; users@dpdk.org <users@d= pdk.org>
Subject: Re: Finer matching granularity with async template API
 
Hello Tao,

What is the output / error message you get?


Regards,
Asaf Penso

From: Tao Li <byteocea= n@hotmail.com>
Sent: Thursday, March 21, 2024 5:44:00 PM
To: users@dpdk.org <users@dpdk.org>
Subject: Finer matching granularity with async template API
 

= Hi all,

=  

= I am using async template API to install flow rules to perform actions on p= ackets to achieve IP(v4)inIP(v6) tunnelling. Currently I am facing an issue= where I cannot perform incoming traffic matching with finer granularity. The test-pmd commands in use are as follo= wing:

=  

<Not working test-pmd commands>

port stop all

 

flow configure = 0 queues_number 4 queues_size 64 counters_number 0 aging_counters_number 0 = meters_number 0 flags 0   # PF0

 

flow configure = 1 queues_number 4 queues_size 64 counters_number 0 aging_counters_number 0 = meters_number 0 flags 0

 

flow configure = 2 queues_number 4 queues_size 64 counters_number 0 aging_counters_number 0 = meters_number 0 flags 0

 

flow configure = 3 queues_number 4 queues_size 64 counters_number 0 aging_counters_number 0 = meters_number 0 flags 0  # PF1V0

 

port start all<= /span>

set verbose 1

 

flow pattern_te= mplate 0 create transfer relaxed no pattern_template_id 10  template r= epresented_port ethdev_port_id is 0 / eth  / ipv6 / ipv4 / icmp  / end

 

set raw_decap 0= eth  / ipv6 / end_set

set raw_encap 0= eth src is 11:22:33:44:55:66 dst is 66:9d:a7:fd:fb:43 type is 0x0800 / end= _set

 

flow actions_te= mplate 0 create transfer  actions_template_id 10  template raw_de= cap index 0 / raw_encap index 0 / represented_port / end mask raw_decap ind= ex 0 / raw_encap index 0 /  represented_port  / end

 

flow template_t= able 0 create  group 0 priority 0  transfer wire_orig table_id 5 = rules_number 8 pattern_template 10 actions_template 10

 

flow queue 0 cr= eate 0 template_table 5 pattern_template 0 actions_template 0 postpone no p= attern represented_port ethdev_port_id is 0 / eth  / ipv6  / ipv4 / icmp  / end actions raw_decap index 0 / raw_encap inde= x 0 /  represented_port ethdev_port_id 3 / end

 

flow push 0 que= ue 0

</Not working test-pmd commands>

=  

= Once I remove matching patterns for the inner packet headers( ipv4 / icmp) = as following, I can see the processed packets inside VMs using tcpdump.

=  

<Working test-pmd commands>

=85

flow pattern_te= mplate 0 create transfer relaxed no pattern_template_id 10  template r= epresented_port ethdev_port_id is 0 / eth  / ipv6 / end

=85

flow queue 0 cr= eate 0 template_table 5 pattern_template 0 actions_template 0 postpone no p= attern represented_port ethdev_port_id is 0 / eth  / ipv6   = / end actions raw_decap index 0 / raw_encap index 0 /  represented_port ethdev_port_id 3 / end

=85

</Working test-pmd commands>

=  

= Similar combination works when using the synchronous rte_flow API. Any comm= ent or suggestion on this issue is much appreciated. Many thanks in advance= .

=  

= Best regards,

= Tao

=

=  

--_000_SA3PR12MB881122DD9344AD533DCD65CFCD322SA3PR12MB8811namp_--