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 87DCE430CE; Tue, 22 Aug 2023 11:05:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 106CE4282D; Tue, 22 Aug 2023 11:05:33 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2062.outbound.protection.outlook.com [40.107.95.62]) by mails.dpdk.org (Postfix) with ESMTP id 64C6A4021D for ; Tue, 22 Aug 2023 11:05:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iFDafMMvs59Ovv/jVMzNyONE/mfTNeCCVGSayC8esI7QLWOuL1Vy9ooxcdVTHoavJlvqTdt8VCLa7ZTXbaGeYdMmcI5J46QR5E54HmN2JbMZ/TwxOuOcnwb7GU191/jew5BZcpLzhbiO23zHC/YVx1dRaLcEdGSvdNw7LK67aR1rVBniHgo9Jz4lHFWhqAvAYQUVNUtuumNqpfwpif2tH4t4dbZdg9IKzW+LO78py/gax4bYoRQrlnT5ZDnpZIoP1Mmve9xSZxzqOUyP/G8M4t3Jy5rLUzTMc+q33K4jI6rAzmmv3TOx13/aveCUt4heNLwoZ/6EENHJEkJiAiyBMg== 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=bUiAJMqjJeR8SbNcUWDjKuBKnF/yPgpcnEZsRB3gBsw=; b=dra/hZ0QUsPyqh316Pdy4+i4/2e3Z7VC6JZYkhWVHHD/Q8yYXjRgjiNREB/bZz29S4djLsglTmI8MJqBZBcRD0+zg0pCbdCw3XTb7qdYzKipNS0mhz5K1tu1/XL0xEwsnxWFwXuzGJhcSTzOG3T+yRmm88A7u+Rbvzvl6g6TByZ297xXdTKz5/dzYTPmqL0Sf9OMaMp+1UxYhTqca6dMvbbgMWWaYGYDoTj5MH3EqSh/KQ5qt4TcwyxMU/pVFokjEJ6pObt2X8fQ4djZLEwKuydQ0xJ+rZKxff0THT85e3Sae9963VoUSWvXQWbSGNvDR0vPkBhLcSUOo7W0Kir/Ew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 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=bUiAJMqjJeR8SbNcUWDjKuBKnF/yPgpcnEZsRB3gBsw=; b=osYZUmegM+jlswSWG5szz/h1/hfCnlweRIY0a4l9WQ8ujgch4vuR88dwWAzaqkIQaZkeRnDLkHA2BA8Nb5f1KIjPSIQxUAB085LLn+bGJlfnMKveqbOeS/vmVvs2tn5SCCoxLVZcMaKhaBK+laLe3ad5R5YRoiK1jKpFioZDE6Tq/9rggwi5/i3MZmm4JmLCG3K8xUbdsh3nyexQYcDLSv+IgxDpS+Iu/aFbK1Hof1MXFZoSpTHp9naGynPxMSzvapoimmd2yEA81KF0nZ7LpOG1H8ReU2dpnHuPsNJarshpI2MZJlFlngkS0ddZ4ef3r6VP7BGEpzrw00Aa/tX3CQ== Received: from SA1PR05CA0018.namprd05.prod.outlook.com (2603:10b6:806:2d2::18) by SJ0PR12MB5453.namprd12.prod.outlook.com (2603:10b6:a03:37f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.24; Tue, 22 Aug 2023 09:05:29 +0000 Received: from SA2PEPF00001507.namprd04.prod.outlook.com (2603:10b6:806:2d2:cafe::81) by SA1PR05CA0018.outlook.office365.com (2603:10b6:806:2d2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.15 via Frontend Transport; Tue, 22 Aug 2023 09:05:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SA2PEPF00001507.mail.protection.outlook.com (10.167.242.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.14 via Frontend Transport; Tue, 22 Aug 2023 09:05:29 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 22 Aug 2023 02:05:16 -0700 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.37; Tue, 22 Aug 2023 02:05:15 -0700 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.37 via Frontend Transport; Tue, 22 Aug 2023 02:05:14 -0700 From: Michael Baum To: CC: Ori Kam , Aman Singh , "Yuying Zhang" , Ferruh Yigit , "Thomas Monjalon" Subject: [PATCH v1 0/2] ethdev: add random item support Date: Tue, 22 Aug 2023 12:05:03 +0300 Message-ID: <20230822090505.3242455-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 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: SA2PEPF00001507:EE_|SJ0PR12MB5453:EE_ X-MS-Office365-Filtering-Correlation-Id: d7686290-0a94-45df-e837-08dba2eeeea0 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: uqv59UZLOh0bM5v66pR0plynTQcPfaJA+Yq6h6i/Cwr+D7yy6otqa9tbK19M4ExuTImXr1REfyiSodUcg9ymlO+TPQEwHTIZpSxjARMl4qEkfq0bKiB9RSNvsZGaGEIsqHG+I7Y9ar2zP9jEE6XhWaVVtRlfrRK3y8GIiUC72K8fF+e+2JBsRqT21A1yQwZCp9rtkkot8m/ELRSfW5yJQekNuPz/6WXuHgrCGabeTCiWTxAXzR+GjKKEkKnTpUNagGNw9LbRL0KyCnc5hhc8HG1CFDG/YQB8Rtm36munGKDTP5c/ocvx2kkLMao87uMGkEUpI4blti0NR8aj7J68ZeoiQlxWwqCmwoKsjIzZ+96f7sgFmZdYgqWi1WgeqBZwA2+UHmNi9j6oyfTUftS0vPBPqCsW5+gS+ZaXOXwXYJtHKt3xyA9QmXmkvajZdpDbhnbF53hkQ/Xz4KlGOJ65jBOT6hdbDYM/dl6fgDLhI4e4pAsN7Xxr1D41CF0t3fRkGd8T7hTQVpdfp5YaU3SrdfsyCmqgzOzi1YxtzijIBY1KAIk0lc09OVGYdLk4ql349ozDtm/FqJhoi51007FojMiTf9RskyzByvW9kJVbqUH/WKAoWN07A+6BLcX/AsII6hYkZNgtWX41+R0dKVCKGSwJAvZ4VoPkKFbPcizHMJrUc3ve2+hagwjCoumAdS6qFLvcw3DAuDEYaon5H4Hg9YUoNOtBy2oLwcwde0x8rzP5SSDr5XsyyakXkXKYqoaC X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(39860400002)(396003)(346002)(376002)(1800799009)(186009)(451199024)(82310400011)(40470700004)(46966006)(36840700001)(54906003)(70206006)(6916009)(70586007)(316002)(8676002)(8936002)(2616005)(4326008)(7636003)(1076003)(40460700003)(36756003)(41300700001)(356005)(82740400003)(478600001)(6666004)(55016003)(40480700001)(83380400001)(4744005)(2906002)(86362001)(36860700001)(47076005)(7696005)(426003)(5660300002)(336012)(26005)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2023 09:05:29.1089 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7686290-0a94-45df-e837-08dba2eeeea0 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF00001507.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5453 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 life time of the packet. Michael Baum (2): ethdev: add random item support app/testpmd: add random item support app/test-pmd/cmdline_flow.c | 30 ++++++++++++++++++- doc/guides/nics/features/default.ini | 1 + doc/guides/prog_guide/rte_flow.rst | 11 +++++++ doc/guides/rel_notes/release_23_11.rst | 4 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 +++ lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 33 +++++++++++++++++++++ 7 files changed, 83 insertions(+), 1 deletion(-) -- 2.25.1