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 3991AA034C; Wed, 21 Dec 2022 10:00:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C8FD40A7A; Wed, 21 Dec 2022 10:00:47 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2060.outbound.protection.outlook.com [40.107.237.60]) by mails.dpdk.org (Postfix) with ESMTP id 4593440698 for ; Wed, 21 Dec 2022 10:00:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LNAP3yle2fGNVhfUfjwJOioquqKCOGIRPQ5QH3ueVE5n3zjY4un4wuyRZcdAlcjXodonH/chOyRQtekIF4hK0P40/nOMhXu3N6enBEgGLeU7B1smaQ8OUuiH1jAqnEn7NGefuDPf/4EEZkxJWPaS+lJfWe7HvZ3akVFV2g+pZxdDmgffcaBK9mdsoV7RHMjaisNCT+uf5Ejwxj660fxC0OMqzCr5HZZnlWkT6Vm9ez+u6wsTpCE95yyICBBPMEiZaq2j27EhF8JdMJclwJmvypwoAhIPkApUpFrS1CzkAVMn2ZBcafhg1CX6NZWwEn/d6h8aIM9PUuTh7PB//9kPDg== 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=dWAQyVemrWyjcEFhsHYNjEqwvoZDudXx1bCEADqFENE=; b=iUTZliehY8PkJ03ehDlMMA9NfnyzHZLAppYSpNZzvI658VmO1lU7CsgPOaLviReSvHGAkJ1SkUI4kT9Urp7U6Sij15anqPYJj36M0ZEbpqdx8eB761I8CPASLCH+RVD8/6BgUyMEZzuzcgc+jn2xPl41WCzA/PR5DXNiWxUeh5L3PoPLNkBxVHOMju0PvZOdEwnEOlJ0MuOKAEvCTdMg7zoCM7fzHWgI/CpT6SjIeV8f23gQCFVtiWgdu7XRHQ4jDyDS+LWaZGhjYp0wlrSZcYxQTR6RNJK3+w6+4YT7lPi4vo4cpsjvo9uOJdslGT/O1TJzRVcgXxV7U5uhfkBBdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=dWAQyVemrWyjcEFhsHYNjEqwvoZDudXx1bCEADqFENE=; b=sKur4xJPWl+9F5ixGw2O1CRWcD7bdyk8e4xNumKBRqzp0DQz0ESuR0HM91Bt6OxS4FlZ8U2XO7Ygp+nY4tc7nyqgJUcxzmFO9asuruNzgLhOPeE7PCxiBgg7BR/x0/Lqn1jybVWpMPM0+yUjhPoELDrLGSD2sbmWT5L7TiHP+xRcR5HAM9z4ZkZbyqvQhEb5/z/UOtmmODywJlw8MlouRzi32Z7/ms5AOYxedYEOC6RqOb/faAchh4ptExp48zWmOuCYdqU66elH+4IVuAQhnmlSz8wXIXBbGnzolVPwq1hDv4EOu12SWnF9txkB1Mo287Rg5fp06/rS+6xcsLtR1g== Received: from MW2PR2101CA0007.namprd21.prod.outlook.com (2603:10b6:302:1::20) by PH7PR12MB8122.namprd12.prod.outlook.com (2603:10b6:510:2b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 09:00:43 +0000 Received: from CO1NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:302:1:cafe::f5) by MW2PR2101CA0007.outlook.office365.com (2603:10b6:302:1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.10 via Frontend Transport; Wed, 21 Dec 2022 09:00:43 +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 CO1NAM11FT023.mail.protection.outlook.com (10.13.175.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.6 via Frontend Transport; Wed, 21 Dec 2022 09:00:42 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.36; Wed, 21 Dec 2022 01:00:32 -0800 Received: from nvidia.com (10.126.231.37) 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; Wed, 21 Dec 2022 01:00:29 -0800 From: Rongwei Liu To: , , , CC: , Subject: [RFC v3 0/2] add API to set process to active or standby Date: Wed, 21 Dec 2022 11:00:15 +0200 Message-ID: <20221221090017.3715030-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221205215416.7ac53a55@hermes.local> References: <20221205215416.7ac53a55@hermes.local> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT023:EE_|PH7PR12MB8122:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c223a2b-e9a8-40cd-4e93-08dae331d744 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: UP3hMfIrbliGDrP6tw07egJW20EhWcrggsAc85xyTXS8Mnaf9qlAYC5GONXu5Na+C4DdUessAmnsYmNLPUyVaUTFq6mn4k9iOdTDjTrGWykba6Co3FBo4qU4DbNq1QMb015sOys/rFCAWngPMhxKwEtxsKQGSM/SFY0CbbY75f2N5sbK/I1no02/6wITkE/LzfHZsgsm53zV3BCjrTuJZJw0ZgnCjw1ZI0+Jq64NqEvzPiiUHCIXU+NP6qIpMjWJezXkjXroJh0Rek5ZcIqjv0LnX6U2YyR8IQm3pjMRNvC3AT2cnh0sRDeGLE8sZ6HBj57oyMIJd4zdnN7zAoUnb1xxrVORwjNClfOJ+m69hEmE7+3KHiTHZGfzl/1qe/iTZwqIviOjG/rvA+BgSzQ0J9QTvJi+dM796dAulGm1rZj4SOqhPSv7acalXUykzIDsxQLnd7AdCUDPGpf2V5x+1pR7Ez8y+ucV2aZmJ0dJx72vsHzgNCR777UFKIAVUfxEt6XyS7f3+Kk72hg6Q5cpchVz/gMLCkD0DqESuypybtIVmxG7wwMebkTrkvrkxgs+CuUfWH/c6x4x2yMMwkf7p2DwIvFRnBRFLYfNNNPSQfG6TPtF/s7srcgEf6bDPVrzKeL8bx7NRJrgkH1mRizTTZNkLI+5GKbarQyurI3icNPO7YLgX0dP68R3hp+lsAZ+ 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:(13230022)(4636009)(396003)(346002)(376002)(136003)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(4326008)(70206006)(8676002)(70586007)(4744005)(41300700001)(5660300002)(8936002)(16526019)(6286002)(54906003)(110136005)(36756003)(478600001)(316002)(40460700003)(2906002)(1076003)(40480700001)(55016003)(107886003)(7696005)(186003)(26005)(426003)(356005)(336012)(6666004)(47076005)(2616005)(82310400005)(7636003)(86362001)(36860700001)(82740400003)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2022 09:00:42.9889 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c223a2b-e9a8-40cd-4e93-08dae331d744 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: CO1NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8122 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 active or standby role that affects the flow rules offloading which is userful when switching DPDK to a different version. v3: Use active/standby words to distinguish. Add new device capability bit. v2: Add more sentences to describe group concepts and define group 0 as root group for traffic to search a hit rule. Rongwei Liu (2): ethdev: add group description ethdev: add API to set process to active or standby doc/guides/nics/mlx5.rst | 10 ++++ doc/guides/rel_notes/release_22_03.rst | 5 ++ lib/ethdev/ethdev_driver.h | 63 ++++++++++++++++++++++++++ lib/ethdev/rte_ethdev.c | 41 +++++++++++++++++ lib/ethdev/rte_ethdev.h | 7 ++- lib/ethdev/rte_flow.h | 15 ++++++ lib/ethdev/version.map | 3 ++ 7 files changed, 143 insertions(+), 1 deletion(-) -- 2.27.0