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 D2AED436EF; Thu, 14 Dec 2023 13:18:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72B5243291; Thu, 14 Dec 2023 13:18:36 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2051.outbound.protection.outlook.com [40.107.92.51]) by mails.dpdk.org (Postfix) with ESMTP id C29DB4327C for ; Thu, 14 Dec 2023 13:18:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E5fEcKlJ8Wck8ilm3Ehzn7WBAqBGi3StSWpulRWXbO3KndW16a1XTnWT6BoatM922cZipNVA7akqbHrXcbfMREviDPpuQrsTaSwy0PLlDA4YtOoOw02J84/kNaVMywRsWkmPdhEPJWcC2A+TTK9f3oNJU+lLBdFRU/loIlNdXuwnaTlxCYIcc8aKX4nP6ifcAgTlX19pvZa4476IEtmQCmrdTViYEl7hcEdQA5jOW4ZJputCqdNzJddJ7NtJyVvhDFayVSOmv8HT228M99PSkuwd5QBW04jhV4APaumuTcjpBTHZjoDwJcbUxKmE9mGcOyt8rrob1v4TZbSMvXEb9w== 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=phaJ0JfieSNsPjFRnomAwfQmJFWS0uqGOisprFglllY=; b=URsPV78vHky1P6fvzzyRuswW9KOI4RJd2YUKXomDMsqRV42rfInO/UREorbbWUGKBFMmRuxI/QAWcFQp6JoihwVTDuApG6iNsNKvIH5nAInAu5ohUgMMLpGxKlH1EbyewqRyHK7qUyRR1PwyzIsGEJkeLwgtcBcyl4GlztV+X8Bh+t2Tj/hg+DTF56s2rso/vbJ15nVxUF27zRInDE9MoTgEyY/REdfkdOSfu4ia2o4DS0trlHsw4RgO0m0zbcKWw8j2F3weQJX391PC5qP3RrWBUPbEZZcpMjuppm04fxgOJOvsNKTJtkkY/r4RpLUD4YVgJvr0kr3/E99Bwhbi7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=phaJ0JfieSNsPjFRnomAwfQmJFWS0uqGOisprFglllY=; b=eekplwBIUZin7X1dsbeLrMoOVnwIDTXlvGYSWZ2pxIufMrprg4UZjCPjiaCpQSu0PZ3RkwtYwakAtogk1O0QciQIUxI71RoEcZR4xqA3TXi43tNrnNk0QnvbJmSjbso6R/pySVERTx46083HV3s0ay5sTPn6GiZo65A5/BpXzyY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DM4PR12MB6664.namprd12.prod.outlook.com (2603:10b6:8:bb::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28; Thu, 14 Dec 2023 12:18:31 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.7091.028; Thu, 14 Dec 2023 12:18:31 +0000 Message-ID: <21f3a14e-3ec1-45fa-b619-66f4b2007fcf@amd.com> Date: Thu, 14 Dec 2023 12:18:24 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] ethdev: add random item support Content-Language: en-US To: Michael Baum , dev@dpdk.org Cc: Ori Kam , Dariusz Sosnowski , Aman Singh , Yuying Zhang , Thomas Monjalon References: <20231130163215.666239-1-michaelba@nvidia.com> <20231214105844.1640764-1-michaelba@nvidia.com> <20231214105844.1640764-2-michaelba@nvidia.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJk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dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231214105844.1640764-2-michaelba@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR4P281CA0055.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:cc::12) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB6664:EE_ X-MS-Office365-Filtering-Correlation-Id: edbd8bfa-4fac-4aa6-4105-08dbfc9ec8fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fGVOyrIKIq3x7gwTEreZC+2ntqvKpuG2+HaxVE6+fxdXbFQMqcgde9Lqv5BfIm3u+RxLE6/Bt02/nt9CNNR28Q9LF4mphQ3hKkCY0lDgWMZhU7BoaMPeNj4+thS6N3bqOIoQtGUQjNoCDlNmeAPcDYAIIUtP6kK1TpG5EPiYZ12iZhC7FTaaB5sYV/9QpFB6pSSagHiP+lYrqE0+g4YQ/Og8R7LsBqj/qC9nbP9pzMevBaOWNMziU/v4GJqHW+6PQ0q78cva1WE9B18GJOO7WKE2ePjY55QWXPAq9Y00xCgOgjsvqWBh1Z03em+Uxi7AHPFUMGwbOUcE0D8S4PsoSnGcnwmp3Vx2BQ/gTh61OD8Y4BhX0Ja/Gba2xt0/C8ybWwMHHHVvGfZTQYrifU/WAdDJuZclnRm1EgTw13pPvoksUrPZhO+MT47H37mGI72IpzCsWLEjCFOHg2qOVkWwKaWSP1oFKKYrOjrtuJGHnr5B+WSkyGnVbFDa/B8UtV2hA9CGeDk4T5r0tqTGSlomVZBisQPFGxcz3X2Xt9SS2AWbnDoXoRivIONXRJldunZXUpwKnnV8b9xN1O61aabh0SfH3yMhVQGMsb2LgbVP4VAQTAFl0eGHCAFli0rpGu3Ves+IIUD20VezbdU6TJ+2cqFw19PtR2o7ocxjdZ3wWhoqDqOzLqGahxQd7BmCgMjQ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(366004)(396003)(136003)(39860400002)(230273577357003)(230922051799003)(230173577357003)(64100799003)(186009)(451199024)(1800799012)(2906002)(38100700002)(36756003)(41300700001)(31696002)(86362001)(31686004)(2616005)(4326008)(8676002)(8936002)(6666004)(6512007)(6486002)(478600001)(83380400001)(54906003)(66476007)(66556008)(66946007)(316002)(53546011)(6506007)(5660300002)(26005)(44832011)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MFl6MzRTZ3g5dkVndFNrRGJYU3hWOXRRV0FmK09vdStPcVVDVEhOY1JjRXFU?= =?utf-8?B?QkdaL2w0Q0lsdnBUcTlMa080ZFdVRG9VTlVnQlNpOFpZNE1zZ2lEVHM2MGdR?= =?utf-8?B?WWN4MVNnOXZpVWczVWFCQzl5Vkl2TFdzL2dnVll0WEJ6bGxTU0hkeHFyaFhu?= =?utf-8?B?ejBsRkpnTlM3UkZZV2J6dnlYK0Y4NGE4L2N2SUxkTW5zcXdXSHV3ZE80QXk3?= =?utf-8?B?V1E0U1NBZzRIK21pSW1OTXdSOUdSUkxzbnQzUkZUWVV2bnJRUktVN0NvSlRu?= =?utf-8?B?Y0xNQWUzRG9kN0MzWDZyOGtRRDZUdWdkcm9XYWUrbnhOSEhjK1MxNmtKNmFF?= =?utf-8?B?R0pZUEVUYTdjRkdBc3pueHFZZUNTZ3pKeFdxRkhBMlZSMWRVUmx2YldBczRj?= =?utf-8?B?NDgwd1l2eWJyamtIZ3dwSksyRjQzQ002c3EwWkZ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uthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2023 12:18:31.3178 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QCdCzpggokAT/cCvhqQge3Y90JWV65yXxqd4wzEEE218uLvIKTg5tlc1OaXqdBtS X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6664 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 12/14/2023 10:58 AM, Michael Baum wrote: > Add support for a new item type "RTE_FLOW_ITEM_TYPE_RANDOM". > This item enables to match on some random value as a part of flow rule. > > Signed-off-by: Michael Baum > --- > doc/guides/nics/features/default.ini | 1 + > doc/guides/prog_guide/rte_flow.rst | 14 +++++++++++ > doc/guides/rel_notes/release_24_03.rst | 5 ++++ > lib/ethdev/rte_flow.c | 1 + > lib/ethdev/rte_flow.h | 35 +++++++++++++++++++++++++- > 5 files changed, 55 insertions(+), 1 deletion(-) > > diff --git a/doc/guides/nics/features/default.ini b/doc/guides/nics/features/default.ini > index 806cb033ff..6d50236292 100644 > --- a/doc/guides/nics/features/default.ini > +++ b/doc/guides/nics/features/default.ini > @@ -140,6 +140,7 @@ pppoe_proto_id = > ptype = > quota = > raw = > +random = > represented_port = > sctp = > tag = > diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst > index 627b845bfb..900fdaefb6 100644 > --- a/doc/guides/prog_guide/rte_flow.rst > +++ b/doc/guides/prog_guide/rte_flow.rst > @@ -1573,6 +1573,20 @@ Matches the packet type as defined in rte_mbuf_ptype. > > - ``packet_type``: L2/L3/L4 and tunnel information. > > +Item: ``RANDOM`` > +^^^^^^^^^^^^^^^^ > + > +Matches a random value. > + > +A random unsigned integer (at most 32-bit) is generated for each packet during > +flow rule processing, by either HW, SW or some external source. > +Application can match on either exact value or range of values. > +This value is not based on the packet data/headers. > +Application shouldn't assume that this value is kept during the lifetime of > +the packet. > + > +- ``value``: Specific value to match. > + Hi Michael, What is the usecase for the 'random' flow item? Is it to match some kind of metadata generated by HW? Or is it a way to sampling traffic? And how random 'random' item is, is it configured/set in HW or random per packet?