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 1E1B4436EE; Thu, 14 Dec 2023 11:59:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7D1B4325B; Thu, 14 Dec 2023 11:59:09 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2075.outbound.protection.outlook.com [40.107.102.75]) by mails.dpdk.org (Postfix) with ESMTP id 096414324F for ; Thu, 14 Dec 2023 11:59:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yw+7KX1fgGVSRSroQ/Zb/IAeKGIIYcyUf5F0dWP+M2agu/jLScSu91ln+UoxBu3oc0rG4l41Cn9nhM2uvm9n+isIyQLqOtH2MDdAOnRmtyTBxPecqADQu5pBMxDLlzYda1l3dSLviY4wpFl3lrMR59vMat8XBysFk2+7OoYwhadisVHl4Ip+GecRCsgM4AsNr95BDGhA0Uv9JPAPSEvpSqAH0TmILsWlD5oN9pF6ePxXKzezj7Hg/eX2s0xVGFd9eupAd7pvJehT6cGgRDtMKGB0nYJWL8i82qTLi34L829R1el2fqkb2DAd1tb4pUNQVO12OU5JWBf/ABXlwfkkaA== 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=zUC6yRoLg7lqrSyTKOKRqPXM31R4XL3L87uzuVXmt5E=; b=hTGHtcFA3GvFZb/YCiCrAghDZeb3YxIvMtvKpllclDyMf+5qfYovTzIDlCVkNnaM3G44d2HuSiMux7KB4kaY/nU+xvclF1bRCrwbFcXx4njQBbcguzpZiN2tFX3Frj7brZ+6hE9Zpl1KgBI+ZDQGQfynrljddQPnCwGpFOU7COhR8SJTP2x7wrxySra15ONPev+fIjf7F2RHv7zmoM9HGxFYtgp/D/JUHq9YUX0tMqxHGmvGZCnC4V/Tpt+h04keGVMfHoz1BzQefBBHf/TgWrKcNNg+wuYrgTGtm/eGf9jRn/fNThr9QQpJsvObuCwBTlV7FHf8diH7QS/VnNEv0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=zUC6yRoLg7lqrSyTKOKRqPXM31R4XL3L87uzuVXmt5E=; b=juV1h+D4JgPPOgOsnxG7hQByXx+r0Aa/syFghrtID1P00LzVHP0HRgFLm8RYpwMesrn+ca0XU0eELfrLyK1sxGC7Lf9xCiUg1suRH1e3tl+C9+/oxKJkyOJ/lVmgtNvfLNwjL1G2Ao8xQXhhfJ/LOHsYcYklhlrxWWBSlKGFnff/w6YES7J+ITZ3ovbEOyGdgk/54tQ7kuQMoeY2JvGqz5e8jEnD6eD3Irib3Yj+hMFjIPxC6Cq8fY8v7w/Q5GsKj8tGxzWG5/fexMDyJ312w6hMtNEVL6P/vS1EXKhHUoEIJ/xI9x/Xucbbi+9Emv75dbxhjW2tRLI6N+S2EkU/OQ== Received: from CH2PR02CA0026.namprd02.prod.outlook.com (2603:10b6:610:4e::36) by DM6PR12MB4481.namprd12.prod.outlook.com (2603:10b6:5:2af::11) 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 10:59:03 +0000 Received: from SA2PEPF0000150A.namprd04.prod.outlook.com (2603:10b6:610:4e:cafe::ff) by CH2PR02CA0026.outlook.office365.com (2603:10b6:610:4e::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28 via Frontend Transport; Thu, 14 Dec 2023 10:59:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SA2PEPF0000150A.mail.protection.outlook.com (10.167.242.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26 via Frontend Transport; Thu, 14 Dec 2023 10:59:02 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 14 Dec 2023 02:58:51 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 14 Dec 2023 02:58:51 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41 via Frontend Transport; Thu, 14 Dec 2023 02:58:49 -0800 From: Michael Baum To: CC: Ori Kam , Dariusz Sosnowski , Aman Singh , Yuying Zhang , Ferruh Yigit , "Thomas Monjalon" Subject: [PATCH v4 0/2] ethdev: add random item support Date: Thu, 14 Dec 2023 12:58:42 +0200 Message-ID: <20231214105844.1640764-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231130163215.666239-1-michaelba@nvidia.com> References: <20231130163215.666239-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF0000150A:EE_|DM6PR12MB4481:EE_ X-MS-Office365-Filtering-Correlation-Id: 5cd100a6-e8b6-4a41-d9b6-08dbfc93aee6 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8l3VZVNG/mXMEjXM2XYA7/bzMviEJgT5aKKOzSazIlYYAs73/MMPuzqreqzDwnLTAsAHMAV6qPXGjIj85HAIZEJz+yuy1+2FqkmfqYyBEsqn+QZpw7OWr9sang6fS5ceQG1T20naJ2uahAgcvgQ5JSAxbpLocLAGPeK5nlvDntZ3ncK5z6jGhVb5q4JbxZdi9XwJoyZog9Ykj/KdxgCohrLEmeAeTbxKHqzOWaWUTa3T/iVeZmu99tWx0DHwnQcO7CBUPb13ea/Mfobr7B8HqITZYo+lAilyiWTu+P8VUZEk0qED4AclfIsCAJPIE5W0T+3xCnpzzujL3qS15O3bKpqx0rGYpyonV80D1Aysl4p1BmPXBH1Rla7lgAMBBpUkGJ7IxzoUxTGE8k80UH/uCChHqWjA6MWqo+0BH2IH/oXHCJCLiKHe3+nBUw0tp41413E/Z780esEx/S3Gzj9EPIQfvAY9GMUyvixfx/9bxRUe8+rgrEwdKGV8wR4yRRSZYvWGtYZAXoH0s+Ayk/zAgt8HYTsW8dr/bjai/kUQNEbbSqFNd0xUL2COHQvPBRkz8OiNZLgw0pC9D3R/BVmvrCEdaBvaxv1SW+VU0xnJXCdG4PJmf8EQjuTCgKsfNVVACvjkkxB9WP1Fi+eXrjVDV4kQJD2KNN45ZSFfLrPxsvwc7ywYQVKs6lgDTA/4sg7YUq7oQ3w7d3Pd31um2bCvG2Ae29PTUo3oKPQbLT2X32bV0VCV1MnDxaZO5m6jDLre X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(136003)(396003)(376002)(230922051799003)(64100799003)(82310400011)(186009)(451199024)(1800799012)(40470700004)(46966006)(36840700001)(356005)(7636003)(26005)(82740400003)(36860700001)(36756003)(336012)(426003)(41300700001)(6286002)(40460700003)(83380400001)(47076005)(7696005)(86362001)(4326008)(6666004)(40480700001)(8676002)(55016003)(8936002)(5660300002)(478600001)(6916009)(54906003)(316002)(70206006)(70586007)(2906002)(2616005)(4744005)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2023 10:59:02.6407 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cd100a6-e8b6-4a41-d9b6-08dbfc93aee6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF0000150A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4481 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 Add support for matching random value using new "rte_flow_item_random" structure. This random value is not based on the packet data/headers. Application shouldn't assume that this value is kept during the lifetime of the packet. v2: - Rabase. - Fix copy-paste mistake in release notes. v3: - Rabase. - Move release notes to the new release file. - Improve documentation. v4: - Mention random field ID in release file. - Improve documentation. - Fix typos in documentation. - Add "Reviewed-by" and "Acked-by" from previous versions. Michael Baum (2): ethdev: add random item support app/testpmd: add random item support app/test-pmd/cmdline_flow.c | 28 +++++++++++++++++ doc/guides/nics/features/default.ini | 1 + doc/guides/prog_guide/rte_flow.rst | 14 +++++++++ doc/guides/rel_notes/release_24_03.rst | 5 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 +++ lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 35 ++++++++++++++++++++- 7 files changed, 87 insertions(+), 1 deletion(-) -- 2.25.1