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 61DD743D14 for ; Thu, 21 Mar 2024 20:17:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CDD8442D90; Thu, 21 Mar 2024 20:17:08 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) by mails.dpdk.org (Postfix) with ESMTP id 269C442D45 for ; Thu, 21 Mar 2024 20:17:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a80TMHy2YQqTnlGIHAPoMe2lhMj0C6PeQBqvZT2lZEzkUCjHOkcFJQE/tuz/htmpPbvsgaFx4M9NQdc59KUsiJKtoOBxFLufhfhZ66HT5C4KqkOjPezpvJsOTmg7X3gX2/3MYkNfc+keEUR9DChXbuWaHILSbZcKH/tyz87Cjaxdltw1EOwcA1dXNsLfy0Nkq2GW0cAO1a9X7X+ETvckuExZcli6k5KFn/oWk8KVj9D6hq3DATKD6UuvgR5T5GbwJOwIAFZHpTYFwEvNeFo/qVCaw6pmRWfDEtICMxdQbKig9bi5VFZDvigdPtgAfz2DuYPdBOkI9DE9sdeAwtyL4Q== 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=fwSWJlTMnrV/ZLJiTfu4oxZy/e+80PFzPXe0gm2dyfw=; b=YLWhCWBot8RAILl4WSxR8+9Ss/Do2e/BQdrZSxKpTuDLGNuNG6cJcUJ2VbFeo1UYEUS98divVz0rCAntT71mv0zpv9T4ebIatPy19iZ172efQC32jOjC37PkWa0yEXgIm8htY+aNhksPD1x1qd8tXgadfSnGr5afuk800bEMHiOSq4daPWMtCod8ctWGjzcEmlHEBfPGsTd+sXEtgUrU2mF4wvNS2SiqmT1AbZyqwRYHG2D2olgT+I5aIeAUZfJyxLaI7b9x94h4J6OiM2s0fZ1gLwEHxv5mSgfL3hyg6EHqI1bCLU+GnVhM6aMddQG8tlDRFY1MDG5xnwoDkFkLjQ== 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=fwSWJlTMnrV/ZLJiTfu4oxZy/e+80PFzPXe0gm2dyfw=; b=a3rR7QNQcCW9gaYKNIxM76Yh1FeYuErlzaL4otejkYdD+UeL4TQ/HeNcLRHIItFlGjx80DjAOkGyZ6XF2KqmKcxdgLVJHMS/XaTvu+4wqer740hz2eVcZQdYPmCkkQeWbs/2cmG4cHz27et4WE3IfFsDZQ0cweyvsGGFi22DaFuC5kKRhF1SIaA4yLPMBQyUoY/udMdXlhAK0kV38KgDYEzBcUKQ+yD4eaxn8FC/Mqq8w4GddiMEHMRYeJ1mfSg2wug0VI4If5w4xQXASK0JIkw6Cih4tPnz6f0Kc7Sc5FcD/yXTFk/skIMBS5B+MV3bibK0rlJgICbnV0RE9sgTOA== Received: from SA3PR12MB8811.namprd12.prod.outlook.com (2603:10b6:806:312::18) by DM6PR12MB4300.namprd12.prod.outlook.com (2603:10b6:5:21a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.31; Thu, 21 Mar 2024 19:17:04 +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:17:04 +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: AQHae6BPNEwcGktAFESopA2jvtTxHrFCkUNu Date: Thu, 21 Mar 2024 19:17:04 +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_|DM6PR12MB4300:EE_ x-ms-office365-filtering-correlation-id: 896f2017-2f56-4863-110d-08dc49db7e3a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: orygpHS533tjquBU/MCvb4ObpmaclB70DUEQg1vkgTse+tYoVvz0siyrS8r7ueZxn7WSenU9g9syIkRJe9EsViL8qeRzs05i/Jy8AGa6IM3ywuYPlxNmFFpvz3H+TaII96E+PXvfU+v9L3Lq9R4SQBd7Px97J5u0J6pMgiKRRVFQfkcRMUkB0mUrJNYDGpp12tSnWYXbBpW5FwKRcNlsH6wE7fptCPR19faESn388tRGQhNCS5HtVZ1TI9Mi1zLc/VU77KQf+MZVrHYlxbKAyHsRtvW+xtmwUDaBG4O/HDYhidvts6E0FlzFFV3yWsjargLDkF2NbCvactfnr99DcMiKsDQWRbQVTTggFCu+FqLtleHY/UKniEKxbZr1xtZOvuG0XHNEam06DfaFwL+pK4asIBmcy3amBJy4JnjcKTGEzDnyqkZy3mpEDx571HHbUXm7iCs5g0WztkqYXoocYsMBF5vay/6VMOmf5uzRQwnaoSDkBaSds7Rq6byCLh/IyJd0T51MqLxXE2qx5OXGeqEHdeof0Ey5ooAITWjhclYimgg8tvuhOIyp84e2weqAtudNLiRW9qs7GYM0QcgJjvRL8UBhkpbPhsvoFinLNtkt530yDjDi6tbXww7M+MDoVfDa7C8g8ejg/rTAGKdRtwop0C6F0cQ/wEPQOFEsR2o/1FouwurfrxyLLnKUVMELDdiuxwSKpEbtJTcS//4L2ThjOAeQ/adwHrB7VMw0LIQ= 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)(1800799015)(376005)(366007)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?qVuMKM2/ImIKMC0OK9ZsrpWy8VeKiC4dWEzbAhe0sr+L8NHnOzq8HTYS?= =?Windows-1252?Q?WPIv1p9HaVh7UfXwU5Rr8eEmatwveGE8puB0miYTecCYuU0hunA1ClyF?= =?Windows-1252?Q?/3iW2SqyAbW6bqw1TBbLWdg506EvkeJiQ4j9j5BAVyjjTfqwXhlDNsJ1?= =?Windows-1252?Q?xjpfUUqN62ot6HfaSMISVe+bhgBh8yZXEaUr8YEetAUWbPtsPAFi0PtA?= =?Windows-1252?Q?TQh9RDjVCuj83UYwkMxDpNfJv8XsA6KWlKtSj6ButUAjIgoDLeGBkT4j?= =?Windows-1252?Q?ikMip4T20xjonGOgqmYLZDyXbk1i3RUxtQ5IWiaOaepY7fonz8uUuhF2?= =?Windows-1252?Q?pzrZ+JC6XhE4KOydIYWpbBG3emKsfLqsOc4SI4fzXbJFLtbxSq/9S0uY?= =?Windows-1252?Q?6g83k2agcdXvxh9UxFIpdgCG+zMimRGZMbpL0s/D8+fS94Lo2GGNEldh?= =?Windows-1252?Q?LYuKFt2GOvcu4zESDOynYpj6wO4/dWdf6jeMTpx3YbzrMHLUQHlYvZI8?= =?Windows-1252?Q?YXqHmwUM/CmICEAevvyxXK6t+M8A7+2fbUbGkS7U56O4WwvLdDsaAjOH?= =?Windows-1252?Q?3clTs1juoFDVXLRQphCbMR0Gk1miarqwB5JqATHAfMec+Ir7EeU9xhlZ?= =?Windows-1252?Q?T9lRH4gUeESMQ9HS8CnoM5ZK/Fk3cVDzR8lHlUGFVh+e3aZfNqmKVXTE?= =?Windows-1252?Q?/FLLw8DBpNF21mBBtfcmvfRIy7hOUCbuWdlmvX8CQP1y25GFQzu3PEHT?= =?Windows-1252?Q?9pTmLyx2EmiR2016rwfF93bOfUupZc7tO74R/q/otUI59p1de8FozG79?= =?Windows-1252?Q?EWhGpFuKnhEAiyMhrxralJVkOkqKWt+TbgbnIjPD6eDfjUIk1GBKys3N?= =?Windows-1252?Q?xa5oi4h0kBo4ZuVvhXsNGBcDgKkIOgDgsEJiENgNngrb05HsAUxgqP1f?= =?Windows-1252?Q?insh8NOZA2Z9uRJcD/bL/WTSNho3J8qcooGTa8tzb9OL4YIzOIf/stU1?= =?Windows-1252?Q?Rn5gelLjCtpQYXGjM959XTF4MxQJo/faLBZI2l0wdtUDlSSibKCiZret?= =?Windows-1252?Q?nB9lKhXVZ109S8HzEWuWq2qIke8TBlikWhxlxjIIvDA46VM+QDCSR+02?= =?Windows-1252?Q?sDr7AR4hG4RRIqsM8xEyqa9NOdAwDCjk6ERkqW2/PksRAMSVUGM2nlzF?= =?Windows-1252?Q?sVsXsJ2lbIkoRxCYk9cjgVFHPOaf9H5KR3+Wj6BD+d7QFdkHITfPXPsa?= =?Windows-1252?Q?aNlp0/vjACoYhib3BAxTzAlqjEItfzjCSMktXC2M3+dnWTO0eSHxOBSF?= =?Windows-1252?Q?9yW3qHjuijPpVwXnAtDjKzBdxCVCGc1CjrjbHinssm4GANwYqXt9qAkT?= =?Windows-1252?Q?KJ6W7B9rKWZ+otV8I0hLEWEva7x00tpDFCVQKY3gdcg7HujM7OqpP9ck?= =?Windows-1252?Q?pIW2Bu8zxBpu3vf7yPGOW/+hy2I+8SyT2UFjDm8Dj9BjqxHi0+P4Y7ds?= =?Windows-1252?Q?NGecnzpY18unOuUjpUDjLQwF3nm9KT3aHkbqNTOg4TqbHZXIFIBglIGt?= =?Windows-1252?Q?H5+Qz5eXqIrbt68IzSd17Mu+9cyxBRLEsbW5estEGCYFD+tXlv86CQEQ?= =?Windows-1252?Q?p4SpTSPG6lxH25V7/ACARRSXVKPoXRbtAcVQGFXTw4gQXoyre4qF+m8T?= =?Windows-1252?Q?hP/TPGpvzf8VyVi+L/v0rR1drtNNpqGu?= Content-Type: multipart/alternative; boundary="_000_SA3PR12MB881179E6B7EC4556A24D7799CD322SA3PR12MB8811namp_" 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: 896f2017-2f56-4863-110d-08dc49db7e3a X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2024 19:17:04.3659 (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: HsmW3xz5WoGGZ2V18+QsYCfBtMLGJpErosCGNXXZ+WMbtrS2CHbNN7pjYWBtwCWrY43JvofMykQ3FKJ+Q9xt5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4300 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_SA3PR12MB881179E6B7EC4556A24D7799CD322SA3PR12MB8811namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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_SA3PR12MB881179E6B7EC4556A24D7799CD322SA3PR12MB8811namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hello Tao,

What is the output / error message you get?


Regards,
Asaf Penso

From: Tao Li <byteocean@= 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,

&n= bsp;

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

&n= bsp;

<Not working test-pmd commands>

port stop all

 

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

 

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

 

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

 

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

 

port start all

set verbose 1

 

flow pattern_temp= late 0 create transfer relaxed no pattern_template_id 10  template rep= resented_port ethdev_port_id is 0 / eth  / ipv6 / ipv4 / icmp  / end

 

set raw_decap 0 e= th  / ipv6 / end_set

set raw_encap 0 e= th src is 11:22:33:44:55:66 dst is 66:9d:a7:fd:fb:43 type is 0x0800 / end_s= et

 

flow actions_temp= late 0 create transfer  actions_template_id 10  template raw_deca= p index 0 / raw_encap index 0 / represented_port / end mask raw_decap index= 0 / raw_encap index 0 /  represented_port  / end

 

flow template_tab= le 0 create  group 0 priority 0  transfer wire_orig table_id 5 ru= les_number 8 pattern_template 10 actions_template 10

 

flow queue 0 crea= te 0 template_table 5 pattern_template 0 actions_template 0 postpone no pat= tern 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 queue= 0

</Not working test-pmd commands>

&n= bsp;

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

&n= bsp;

<Working test-pmd commands>

=85

flow pattern_temp= late 0 create transfer relaxed no pattern_template_id 10  template rep= resented_port ethdev_port_id is 0 / eth  / ipv6 / end

=85

flow queue 0 crea= te 0 template_table 5 pattern_template 0 actions_template 0 postpone no pat= tern 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>

&n= bsp;

Si= milar combination works when using the synchronous rte_flow API. Any commen= t or suggestion on this issue is much appreciated. Many thanks in advance.<= /span>

&n= bsp;

Be= st regards,

Ta= o


&n= bsp;

--_000_SA3PR12MB881179E6B7EC4556A24D7799CD322SA3PR12MB8811namp_--