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 F1326A00C5; Thu, 1 Dec 2022 09:20:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B15542D11; Thu, 1 Dec 2022 09:20:35 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2084.outbound.protection.outlook.com [40.107.96.84]) by mails.dpdk.org (Postfix) with ESMTP id 8928B42D0D for ; Thu, 1 Dec 2022 09:20:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lfbwpRcMs9tvbG1u37TMuzYzupK+n6jjjt60xmV6t3j15aYEZCHYGUHc8qoMHh4A7BvMHVtpfUt9vGM6ZuLtgkaGcWRtICMfoPNE/g3CPFMHse+zekmD30lQg7VLzDl9kKbUx4idGHDMr1El2q0REWGD7XoBT6wKfoKhTDjq/+0iM8k/W/IQCZWtH0Sk3NdQC5WVhHCPP7B0lUMJht7IKdpZXho0KsDFXdLKEcJXljsEwLHX74sbbNhaLAfjYFpYt8ooZ727Hn16EyzR5+mQGREepLU99pOh430AFPwWA71QsYV7eySvF88SPLU1pbSOoNdBm79tDBFQyEiXQbNCiQ== 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=j3YJqYsquGEuMk0CUputZSe774/ADEW2C/2DhlCcNYs=; b=F5z9BL79LKzKqK0hL8P/wB594o/AE4TkWYzfiNbXZfzDPbzkUNLSceh7NaAqeorB6xn0C/lNt66FSdko6xl1p5Hm0/Y7ZPJzZqHB2RKZ+GcPImxF1B/P0HGcR9BlGR9ZdNkxBZZ0CpW9s6TbGCXYIoQWhGyimGQOtgTYwnZa1kJNzTwWHouT3exFfXjxqkG1I0RRY56qMPk1VUZrkCm2kvwCIaoSHZrFLtHmGLBhexUWrU7wKOX1y5c+ZVP9jmlV8tQVEZ9m3trly2dTARFmncIgv1SohZ2G7cvbTEp3T2VEVXOOmvwlFKwa8rx28XDrud7lew/2yD2UQcJIAx3x8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net 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=j3YJqYsquGEuMk0CUputZSe774/ADEW2C/2DhlCcNYs=; b=ubRrhcMvg0VW2em8/9QmhOimfcNf1Wv3tVqd3sM4Ry0FLFCTZ4Cbg6OOEc84M7lja+m4uiZ+2XuYzP2PJ2T3Ym+gqsLBKU8jMWb1tF1aYu4hKEwcGXLnO/VyCQ0QH63D7/Rm92VrXgNiEkz3SZh5MkpxDS+qhEZ0TFWD8c6qe8a3UvedkS07lK/hLbdYrA/1dxqJWySaZyV7UslvmYUloNEubRV+p9Vi8g+6NR4agxd8vXcTF9/t30oMNlmqMSpRKbS/uwijH4SMQty5oRlDoXQP2GKBmj1n509jljRTUuxnIxlwTyDoGWoh6N0BOKavdAJhDIQ0gpPSoJZY2r4ELA== Received: from DM6PR01CA0025.prod.exchangelabs.com (2603:10b6:5:296::30) by MN2PR12MB4456.namprd12.prod.outlook.com (2603:10b6:208:266::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Thu, 1 Dec 2022 08:20:32 +0000 Received: from DM6NAM11FT056.eop-nam11.prod.protection.outlook.com (2603:10b6:5:296:cafe::85) by DM6PR01CA0025.outlook.office365.com (2603:10b6:5:296::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.17 via Frontend Transport; Thu, 1 Dec 2022 08:20:32 +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 DM6NAM11FT056.mail.protection.outlook.com (10.13.173.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8 via Frontend Transport; Thu, 1 Dec 2022 08:20:31 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.36; Thu, 1 Dec 2022 00:20:21 -0800 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 1 Dec 2022 00:20:18 -0800 From: Rongwei Liu To: , , , CC: , Subject: [RFC 0/2] add API to set process to primary or secondary Date: Thu, 1 Dec 2022 10:20:03 +0200 Message-ID: <20221201082005.732252-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT056:EE_|MN2PR12MB4456:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e50df4d-fad8-4c88-ca7f-08dad374e9e1 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: VaNa9+hhcNemWzRDnYaOGKgvWEAYzzHjXX9IWR+T6DF2v7GKD178D0X4iC1MpcUcm9h6ktTLCyKOoLaVpIWiNzPp1MSWwkExRTpgJqen1cIPYWMS/2pGAOLTtUaT1JUTf6Fb0DAzwLA1nxuoHYYciA/hCZhjK/vdbAFJq7Z4CZxWFYstmBG3gjJVqHjHKzie8XsVB/23XXA29VztWFojux8ZKIEs7XpnvcTGi23aFOBiLSHrh78DoqCteWyuYgeqB47vU7p9MZeCjXwQMwpQJx4V0EgKokYcPLRak+0RkW+RcjrOwa2GRI/wjxtIFSW4y8nJqeWbDlPUCxjFOepNAQ9qQTjOH71cBgTg5VzGiWZhpDaAmKEmu+qHk3NKhz5hO9RGvAhwgKajao3YTJ9+NHkCmvDsIIZ1P3ooFKlDUTcRPwaalcyInc0DvtOQFr4Nvc+/Y+6LRs5Ee/iR9bOUqchBGTfvlD2NbWe1JjDW4YoMJW0aSsY9sbSglv+nx70BwxpjpDNgVaYLAx1hzo/rbzFXVmDVxgD+opUmLmw6XDFo08xigD5nw/cedWUzeq7YCHrzksarDedKW/ZrG3gBfJP+RvDrKjfRYTtXQjafFyzzKzJEMM8Nh7ERdANi0gZbQIESeQzMRo+dqnBwI/sQaoh9KPj/mJk58zOqAO7IW56ilJTm2wxGi6v/HU1rd4gt4niL3BDI4ezAp5++UiAZBA== 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:(13230022)(4636009)(136003)(346002)(376002)(396003)(39860400002)(451199015)(40470700004)(46966006)(36840700001)(36756003)(110136005)(40460700003)(8676002)(4744005)(7696005)(82740400003)(86362001)(8936002)(478600001)(36860700001)(4326008)(316002)(54906003)(336012)(70206006)(186003)(2906002)(7636003)(356005)(426003)(55016003)(70586007)(41300700001)(82310400005)(1076003)(40480700001)(16526019)(2616005)(5660300002)(26005)(47076005)(107886003)(6666004)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2022 08:20:31.8339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e50df4d-fad8-4c88-ca7f-08dad374e9e1 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: DM6NAM11FT056.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4456 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 Set the rte_eth process to the primary or secondary role which affects the flow rules offloading which is userful when switching DPDK to a different version. Targeted version is 23.03. Rongwei Liu (2): ethdev: add group description ethdev: add API to set process to primary or secondary doc/guides/nics/mlx5.rst | 10 ++++++ lib/ethdev/ethdev_driver.h | 63 ++++++++++++++++++++++++++++++++++++++ lib/ethdev/rte_ethdev.c | 20 ++++++++++++ lib/ethdev/rte_flow.h | 14 +++++++++ lib/ethdev/version.map | 3 ++ 5 files changed, 110 insertions(+) -- 2.27.0