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 9AA5A41B83; Mon, 30 Jan 2023 18:01:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C5DC40DF6; Mon, 30 Jan 2023 18:01:55 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2068.outbound.protection.outlook.com [40.107.93.68]) by mails.dpdk.org (Postfix) with ESMTP id 0A9E840C35 for ; Mon, 30 Jan 2023 18:01:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i09/vIFnL81WNv3b7CKLWheLODzV1YiEsX801gMVmPnTdECbKzh+/cJZqP9fgrkF2S7hRdSCTQsMDM6TDpnANM61wt4bJP3bdjzXFJSO4+InjtVkz9F58Jp2HMap+39bClpO6/XXJd24k9d8sf74ieylVF/xsevlvvK12l1L73ZB5918T1HBh7MAgczNjhm4PZmtc+gURT8ny5tMRX872y/yx9p7t6+UTMWEKomk4VRU/1+dAyL1T6lskzzLu6rK1i9QYaxb6Z+mX2NSYeQ/PaAhynzxsIP98Y8jBR0yzMX5PvVoJJx6knS8zg/EMMxLk+JZrl5y3a43A+qz0eqxsQ== 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=B8cv06psAvOB6P2ztVHhhqnhxpz97BvRa+S/hj+x0Qk=; b=RRHhoc45hcr4rZ1t9313C8/MM52fvUQpVxCwaprhj2eRfa4yo3VDYAqik0gMs8tsUZgalcZpUeI3NZvY4g9vQcioFjG7JvLZI25QZScy9RalbboA98H3ZcnAZuGD2GxUGsm43DSfl+5QOMcJOOY262gmX3yxKkD4mzmthXrgZ38Ycl+uEm+5SvrcCnFshYGBf55NmSs/H/PCDjiw2KxCDOUc75YvVCKfzx9+1kICSdUySN1gE+FwcZ46pOrym1Q9HbnL8nyu8pANN/z5ivD88NPz8HSR/IYGocxnuBGXgy0WPzljerG3Tqap4qUb9qkgPVIZ8RqU6mbF0yh4VgtQvA== 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=B8cv06psAvOB6P2ztVHhhqnhxpz97BvRa+S/hj+x0Qk=; b=BmQgSTpAP+D1lC+mEpH3EsRUZ8b0/kI1Arh10MRfUQcQ0iNkPLhewgIpjFfIRYQsintFIXOudtBjffsOcQ8aaRC/UxVdOKOa35oO7UMml85BCTJjN8XcixqeQ/7FfqtvtAQRx3DFG69zAwPrY1coXmq+q2KvpXsUEtTK2bMyB/3QX15O2+UF2pOu6WfjNp2q6WWurwFLhisEjEpUF2VNMzbmk7c8R5L5TV/+9F2ra5rWfplCb0LGkx+GifeYwr3578uRdL0UKrJEDFGsYQ9DWSw4bFG1KjUeH2erQuRb7TF4Ut6l5L74SVegOFVV5+x18jADX2WeoqIXC6mNaq816w== Received: from DM6PR11CA0029.namprd11.prod.outlook.com (2603:10b6:5:190::42) by PH8PR12MB7373.namprd12.prod.outlook.com (2603:10b6:510:217::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.33; Mon, 30 Jan 2023 17:01:52 +0000 Received: from CY4PEPF0000B8EF.namprd05.prod.outlook.com (2603:10b6:5:190:cafe::d9) by DM6PR11CA0029.outlook.office365.com (2603:10b6:5:190::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Mon, 30 Jan 2023 17:01: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 CY4PEPF0000B8EF.mail.protection.outlook.com (10.167.241.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.4 via Frontend Transport; Mon, 30 Jan 2023 17:01:51 +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; Mon, 30 Jan 2023 09:01:03 -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; Mon, 30 Jan 2023 09:01:00 -0800 From: Jiawei Wang To: , , CC: , Subject: [PATCH v2 0/2] add new PHY affinity in the flow item and Tx queue API Date: Mon, 30 Jan 2023 19:00:38 +0200 Message-ID: <20230130170041.1360-1-jiaweiw@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: References: MIME-Version: 1.0 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: CY4PEPF0000B8EF:EE_|PH8PR12MB7373:EE_ X-MS-Office365-Filtering-Correlation-Id: 0318df6a-d389-47b5-7bf8-08db02e3aee4 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: Z8CcVQKAzrsrSlME/+Gucg/rBHgGdNhxL+QU/AWe/UZ9q2zKUlgdERD68KfYCr0Jrrq/wt8x42pW8ctwn+NGRzM/YeiZbg7VtM1+aU3o+kBeDOTnCV+70kWiEERZ1qRDw/wG7XySWyRrKi4CkS9RmKqyp+hfjTbZfiwJkFcrbQIZe0QkkSYuR/kGUefGqcffWgfmHH+hwgNKy8eF8w9iZvMGFcnpku1DIakgtlydHnNPE6K3yOrCvhH3RmH3gf8oGeuj79F8jGdgF1+obrXUtYlP0gVgIlvRRsBili9wl/wCGGJYZ0ju4og/oh0bgOhwDlXpFoPxgcns4jgzUV+jEgDHIRiwtPi6dKvgt8MhB0d/jo5aIcxNvUvB2SJZX9gZ6yBR3H0ppdUGZG42Z9xsvt+YoxFRfeluOLhBH4cTxpRo0aq+dINZofS0DD3jFVB5JrB+7AYRHQAbTF1i1pjHx6SODpl/fg38MT3RjZa8YgYzdbIqPBLg/lTpqOYXMljLLZZB4TaXhxQbuH9NnjlqVxV0pvj7EYUEKOhfHIuo8IZfZdZOnpYSuesTvhdE9WV5O6PD4VhPHRMt5dKLEtgSQUv1VpCudj7QkzgAAN5IH/8ig3yigyKsKotlRtRFHt53KLUwRDXW5tuEogXNMWQ5exKpM7hv3orEr/0IN0In7QH4zvMoafc7VfH3SkXXmI10/lwdhicmH8PlOo0gra/syCzR5een06UR73hYIERdZ+RYMinoKf7uZeIxzi72Q0DM58xHjd6+Vf7kxU+ltkLcrpGOzl49JFh3TQSLz7KnP/8= 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)(136003)(396003)(39860400002)(376002)(346002)(451199018)(46966006)(40470700004)(36840700001)(41300700001)(8676002)(4326008)(107886003)(40480700001)(6666004)(8936002)(70586007)(70206006)(316002)(55016003)(5660300002)(54906003)(110136005)(36860700001)(2906002)(26005)(36756003)(40460700003)(16526019)(966005)(86362001)(478600001)(7696005)(6286002)(1076003)(186003)(426003)(336012)(47076005)(2616005)(356005)(7636003)(82740400003)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 17:01:51.6692 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0318df6a-d389-47b5-7bf8-08db02e3aee4 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: CY4PEPF0000B8EF.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7373 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. This patch introduces a new phy affinity item in rte flow API, and the phy affinity value reflects the physical phy affinity of the received packets. This patch adds the tx_phy_affinity setting in Tx queue API, the affinity value reflects packets be sent to which hardware 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/ The PMD patch will be sent soon. Jiawei Wang (2): ethdev: add PHY affinity match item ethdev: introduce the PHY affinity field in Tx queue API app/test-pmd/cmdline.c | 84 +++++++++++++++++++++ app/test-pmd/cmdline_flow.c | 29 +++++++ devtools/libabigail.abignore | 5 ++ doc/guides/prog_guide/rte_flow.rst | 8 ++ doc/guides/rel_notes/release_23_03.rst | 5 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 17 +++++ lib/ethdev/rte_ethdev.h | 7 ++ lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 28 +++++++ 9 files changed, 184 insertions(+) -- 2.18.1