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 DDA0641BB7; Fri, 3 Feb 2023 06:08:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88E794067B; Fri, 3 Feb 2023 06:08:05 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2068.outbound.protection.outlook.com [40.107.223.68]) by mails.dpdk.org (Postfix) with ESMTP id BB2294014F for ; Fri, 3 Feb 2023 06:08:03 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFPr9lX/l3NzbLcDPTRfOrEoGnqp6u+QV6eDv9lP6j9p/RXVD7C6Ekf6k4SGzCfDC18/HlDF0+nWQ5jplWfF4ZmGz6FgV9nqT/9LJhtPcvSMAiadbyaxoVaqfzHYsaS9BzDAn1LcHyKNLjQxuc55Xrz1QgbuUgXAL5x/VsM3Avm0coJ3F0170nlFv55HjISml5b9r7RhdV/4PbrvUF+4Ig2gDs3LO8UB99oaTtInhSxhpdq0JblB8DM7NrI9Xhq3Z5+1QjBjy2jEVvTmRwaUJktiviGMsuFPD7qmVitriQxit6Ktz2bKvUzFFlQbxXNeXURBeHK6u0uEGbfV/fbdHw== 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=596IBEP+/oKTWvl29799/NMVanK9CDqJ4ZYgaVvzn2U=; b=Nj097esPBzY0KUNp+5/mWF940sOAnaTWOuCBrzFJgIGGy2BSJo6u1M1do9+y9dw0g3VCHLnq266YjHcnebmGX33w9RtoW5jzLe3NZ/sMzAJYcu+XwkAmCm/P9DRV1XLsDDdrBEWKCONc1dYBBIjEmxCOXOEPDdmxR1KiANwMi686prwu8Qqeu19bju2OS+BtjCXgUneo9eRveB0RSM9VKBGv9TsoDg2xeAxaFtWuAZiW6zyqjn6KiKQz90Y6AGfHKwksR2wSE09FMTgZghfY6sGEHDWp63AeEu1AYN/Q9GSbw5Pn/gfSiyCcOcLcHAOMoH+clS2YVjl3f+1IL/bpFw== 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=596IBEP+/oKTWvl29799/NMVanK9CDqJ4ZYgaVvzn2U=; b=AesmvfsoCWvEQoy8f4cEIErF+IwAN36RW2+PmHUNbhWY/uzDwDIV1Gt3Z4L6Ut4AddHsIx7QOnNdyUUa3h8RKB4H5q3DPJTaVGcLpgQq0e98+Z1ImKQsDXRRiLrF7ocRZOe6aGc3sobhW+l9oEI1FX8Mr7oC7FpKtyUTQtT6nEA2sAGHj7/zEhdZbbvZW2avMEdP8S2/vEx1m9HTxyo0Y4PNQGgiRxz8/Tyf6jFLN68f1uWac02uqSyEicRJNcQoCnvxbnoRmTDLoIVhVG9okN1Q/cMOlUqfKX3GJI68BovxFa4RQQ80Secp2EIXmKdy0+s6YRUYtBF+5VlPaCv5HQ== Received: from BL0PR03CA0004.namprd03.prod.outlook.com (2603:10b6:208:2d::17) by CH0PR12MB5283.namprd12.prod.outlook.com (2603:10b6:610:d6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.29; Fri, 3 Feb 2023 05:07:52 +0000 Received: from BL02EPF000108EA.namprd05.prod.outlook.com (2603:10b6:208:2d:cafe::b2) by BL0PR03CA0004.outlook.office365.com (2603:10b6:208:2d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27 via Frontend Transport; Fri, 3 Feb 2023 05:07:52 +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 BL02EPF000108EA.mail.protection.outlook.com (10.167.241.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.21 via Frontend Transport; Fri, 3 Feb 2023 05:07:52 +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, 2 Feb 2023 21:07:40 -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; Thu, 2 Feb 2023 21:07:38 -0800 From: Jiawei Wang To: , , CC: , Subject: [PATCH v3 0/2] add new PHY affinity in the flow item and Tx queue API Date: Fri, 3 Feb 2023 07:07:14 +0200 Message-ID: <20230203050717.46914-1-jiaweiw@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20221221102934.13822-1-jiaweiw@nvidia.com/> References: <20221221102934.13822-1-jiaweiw@nvidia.com/> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108EA:EE_|CH0PR12MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 17bc6ca4-ebee-4de0-ae85-08db05a49a38 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: FGvgN5Jlcn2Whbda+RiZuN5wTnQo0LJXUDvxBt6j+YhSIgKz0lPQXIIQXfnZG2adnc21iTvGmCWu0dxCcIUoYNDMSj2t1SuzfsjUTYHVPloS4cUSN1uyr+t3rnTVTrICw4gpAPAEqp7a9WYXxntJKLbD3zNgTp0ixi4iqWHA7Xct9Y0rwjB6AZ/mDwbtIBdX6UZb6dwqr2cJa9Nu7VTRvLX54g6uCNxUHG/h2ZaASRsGBm+jXN4fOu/kzXXkuFABY/SulTKnz2OPXNSwn8hvcJ+hM5m1NnAO4WnAr46hAJvp4OIsXvUZ2e5sNCM1mwpk89ceG7FlOsqhB8oG783oH/dNfgd0/xcMcQD6nyQ48+LVPNXEJeZvin0fSROVYzjZWoDRBYwSc2+ReY5hpLMRKvZkZi2+ZB7t/PKRAw7ln+Bd4jB3TzL/k7tXaTdg/XnHQedIt+Nood7uruSGlmTuO+uVOchKyD5RQ9fbpQ2S4uV6wG6U6S+VWu/1px8h2Bn5D7bEWWySCUl9Ohr4UgiCHnoGKGdt0atT2R0uQgC1Vvt6pXynXaqEp1YkCsK8RYCFJyUHXDiG2xWtx/oB1OnBhJVPdyDZ4vHLu5PiTnSa58uX8puesLlooAyf3M7eOfbpKVuV2SrRFOEmTcKEy7TSTBFCbJf93dSstCt/K9eYsk6lc9WQv9fF6gcyUoF5GM/JYz8OsVVdJtPIBdLUK58nVsyKYaAFcC7nrEB8ozNeMU3uYDvkicx0ab/Uh4psPBgPlVblXPW9qg4sP70ApzZRy8CGt3KHX9ZA6fMiJnmj2WE= 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:(13230025)(4636009)(346002)(136003)(39860400002)(396003)(376002)(451199018)(46966006)(36840700001)(40470700004)(966005)(478600001)(16526019)(186003)(7696005)(26005)(2906002)(6286002)(107886003)(6666004)(1076003)(8936002)(41300700001)(8676002)(70206006)(4326008)(70586007)(316002)(5660300002)(110136005)(54906003)(7636003)(82310400005)(82740400003)(40480700001)(40460700003)(36756003)(55016003)(86362001)(356005)(426003)(47076005)(336012)(2616005)(83380400001)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2023 05:07:52.1051 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17bc6ca4-ebee-4de0-ae85-08db05a49a38 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: BL02EPF000108EA.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5283 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 For the multiple hardware ports connect to a single DPDK port (mhpsdp), currently, there is no information to indicate the packet belongs to which hardware port. Introduce a new phy affinity item in rte flow API, and the phy affinity value reflects the physical phy affinity of the received packets. Add the tx_phy_affinity setting in Tx queue API, the affinity value reflects packets be sent to which hardware port. Add the nb_phy_ports into device info and value greater than 0 mean that the number of physical ports connect to the DPDK port. While uses the phy affinity as a matching item in the flow, and sets the same affinity on the tx queue, then the packet can be sent from the same hardware port with received. RFC: http://patches.dpdk.org/project/dpdk/cover/20221221102934.13822-1-jiaweiw@nvidia.com/ v3: * Update exception rule * Update the commit log * Add the description for PHY affinity and numbering definition * Add the number of physical ports into device info * Change the patch order v2: Update based on the comments Jiawei Wang (2): ethdev: introduce the PHY affinity field in Tx queue API ethdev: add PHY affinity match item app/test-pmd/cmdline.c | 100 ++++++++++++++++++++ app/test-pmd/cmdline_flow.c | 29 ++++++ app/test-pmd/config.c | 1 + devtools/libabigail.abignore | 5 + doc/guides/prog_guide/rte_flow.rst | 8 ++ doc/guides/rel_notes/release_23_03.rst | 6 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 17 ++++ lib/ethdev/rte_ethdev.h | 13 ++- lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 33 +++++++ 10 files changed, 212 insertions(+), 1 deletion(-) -- 2.18.1