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 ECACCA00C3; Mon, 19 Sep 2022 18:38:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C11B40E0F; Mon, 19 Sep 2022 18:38:49 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2041.outbound.protection.outlook.com [40.107.100.41]) by mails.dpdk.org (Postfix) with ESMTP id 96B1E40141 for ; Mon, 19 Sep 2022 18:38:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VxmKJE+UGP+MvB0CysO91j7k/dDyA1z9PHPkcGjPIFT68c4LjUMBZ5ma9nP14PBAu+LUYtNtJjAheHGfrNyzYDJkzJKdQbRyGlhriBxKyc5dPs1v+2NlSoHBMBUPywUiWUftCTm5qykycGBwn1zP9APXRMSD1PsHtszLQVv1jwokAxM1gt1x9dgJgd/JybFlRVUEtLnI+sxecpVP5zmQtBugndv1fVj+U7jFeA5fwUWZ5ohyJbS70x8ETSQLfZjCsz6FtKPnLCz3MlY0onUKPRth7YdolJ+GqsBHouQm+3Gt7WHt7Dh9QaQ8VGx6ncxcqjUn9qAIhhOLNo0lVR//AA== 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=8/4YPr061vQZDP8yRv+8rLiRgXceRdZUFKj6F7a68Rk=; b=YIskFz+M1HZcAqcwFDdCw9nv6xZDmd+1aHYiQ30cTf6b/FX1Nf07VZjh3RyWRW7e/RBwz0M8iMqYN6Ft4WXg8wuRiOoBX0C17MUW1dyR8McCunb5s6lGGm1YYCW4iFQTm+jOCtd2C7uorH8Iz8zD1ZZakL1uz9kbSsevHK2sSnvKCqzAOraZlUypZXnM0qWLcGj23fpcwInyWEJX1ZhhRwMgiEp2IE3uCEhEPFxtT9IJhhC/9z8B1kV4iskCHfaoRVObcBoi0A+X00A4DSWbaAjVm77N02LjwdTchfTZFEEHQ+FGzvTBA3A2GT95Pjpl6EXWSXp9UdXlWP+0w/T3ow== 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=8/4YPr061vQZDP8yRv+8rLiRgXceRdZUFKj6F7a68Rk=; b=bt71p6mtjrsWTx8rzRDx+M+Csfbsss6cETvSVAjHXtNw4PKApfLKTTJGsE47mk+8tOZGz/XyBypiM6PNOdhWBi7yFhwFKEXyB4GPKwByiIq3BeQBHAj5RiaIE3TZWav4pUAoajlSqVmXBN4f1PnwjI2LbSlPywy5MUWi0+GqTdtn6QzJ8Ai8lOX7sup0i7DIn04owinsYxg2a9r6SvIl6yWAG5UePkBBfvFTnl512PmpcxC+rrQXWH7YerxpvP3EXISWvBLfxc1nIjBW9BiEWIIfjvVhqwoRRAkqSdsYQRM5nQyBXBGkrhJh8CaweuM+IGBzh/Aa6FHerFlPeAiLEQ== Received: from MW3PR05CA0017.namprd05.prod.outlook.com (2603:10b6:303:2b::22) by SN7PR12MB6768.namprd12.prod.outlook.com (2603:10b6:806:268::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.16; Mon, 19 Sep 2022 16:38:47 +0000 Received: from CO1NAM11FT108.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2b:cafe::a7) by MW3PR05CA0017.outlook.office365.com (2603:10b6:303:2b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.7 via Frontend Transport; Mon, 19 Sep 2022 16:38:46 +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 CO1NAM11FT108.mail.protection.outlook.com (10.13.175.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.12 via Frontend Transport; Mon, 19 Sep 2022 16:38:46 +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.26; Mon, 19 Sep 2022 09:38:34 -0700 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.29; Mon, 19 Sep 2022 09:38:31 -0700 From: Dariusz Sosnowski To: Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko CC: , Viacheslav Ovsiienko , Matan Azrad , Ori Kam , Wisam Jaddo , Aman Singh , Yuying Zhang Subject: [PATCH 0/7] ethdev: introduce hairpin memory capabilities Date: Mon, 19 Sep 2022 16:37:23 +0000 Message-ID: <20220919163731.1540454-1-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] 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: CO1NAM11FT108:EE_|SN7PR12MB6768:EE_ X-MS-Office365-Filtering-Correlation-Id: cf857c56-80ee-423b-d55d-08da9a5d6c53 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: 1DLezaf/7KLVqrsrTBxCJJcCUWpu+nwWGHiv7ORBGWVlhmhlvS6ZtZCQX+PH712Y5ZZLDiAWx2mwQbU439cSrwLUc8sfT9AQY3I3nIFDL8W0jA2UZjWHNX/RtQ+CJ/tTIR+vjNQqV0nYnIQJO0O5lAqHShD7BhOcZNz9Qa2eB330JKkZDaF/Spa6DmVuPnhzl94vFxFSg8OA35fdyEc7ZMLFpTklGjT3+LsX5TagERnQwd0elm1u0uauz9mhZwzAhna1E8PFxiAxyHwhNkJUAlAc8mrN8UG06ewCbJG2dNDiph2PIqhw3GyZBy6RM0RHg2ya10GtPKfZquCZ2CbUYKnsJGQZwLTliZkIU/kKPUDx2J3RxLOXaXY6Vh81KIovmL59VCMFctZEFzqt6GNkTAOZX34fFy4wyTTOrwg9kLIcv8EE6fzCOn3q1lpf9qLVHs/CqZrrqSCz3reVy+GISui+BtJoNddOII45j/7gg7GEDUKX4Teip2V1XQuCrMS9UKDHA/35YA1PobpUDQaISRsbM5j7FcaBWi2lNPUfijmTkRWymE0U7RTYQMtTYQijtW+PvmnyRWdjd5RVthsCldd7L8CrZozzAJx0JH9lfBo6BFdTDSz6sVVMypK792FtPgb2OITsy1ZZRuvfj/YyscrrJoHRbThUBz2dXx3VVu9rjzaIKVbbdsQjdfl0BaTnEhxjW8VgePE1TId3g0GXbFDGxvutMtUYLncFl5e6iJSL9nYXX7kNqwQKe4HesMWpiWE+0zM/701nAglkNqARRZJs3RKg5xC2b/kfDJeU2N53zjhR9mRQeehL0+QITa1awrIgASQkB8kJyNw/tgyY1ivbnhZIq+vGq1QNwGPkBEQ= 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)(346002)(396003)(39860400002)(376002)(136003)(451199015)(40470700004)(36840700001)(46966006)(110136005)(478600001)(4326008)(316002)(5660300002)(86362001)(82310400005)(54906003)(8936002)(41300700001)(8676002)(70586007)(70206006)(186003)(83380400001)(40480700001)(55016003)(36860700001)(82740400003)(47076005)(426003)(26005)(356005)(7636003)(7696005)(966005)(16526019)(336012)(6666004)(2616005)(1076003)(40460700003)(6286002)(36756003)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2022 16:38:46.5322 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf857c56-80ee-423b-d55d-08da9a5d6c53 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: CO1NAM11FT108.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6768 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 This patch series introduces hairpin memory configuration options proposed in http://patches.dpdk.org/project/dpdk/patch/20220811120530.191683-1-dsosnowski@nvidia.com/ for Rx and Tx hairpin queues. It also implements handling of these options in mlx5 PMD and allows to use new hairpin options in testpmd (through `--hairpin-mode` option) and flow-perf (through `--hairpin-conf` option). Dariusz Sosnowski (7): ethdev: introduce hairpin memory capabilities common/mlx5: add hairpin SQ buffer type capabilities common/mlx5: add hairpin RQ buffer type capabilities net/mlx5: allow hairpin Tx queue in RTE memory net/mlx5: allow hairpin Rx queue in locked memory app/testpmd: add hairpin queues memory modes app/flow-perf: add hairpin queue memory config app/test-flow-perf/main.c | 32 +++++ app/test-pmd/parameters.c | 2 +- app/test-pmd/testpmd.c | 24 +++- app/test-pmd/testpmd.h | 2 +- doc/guides/platform/mlx5.rst | 5 + doc/guides/testpmd_app_ug/run_app.rst | 10 +- drivers/common/mlx5/mlx5_devx_cmds.c | 8 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 5 + drivers/common/mlx5/mlx5_prm.h | 25 +++- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_devx.c | 170 +++++++++++++++++++++++--- drivers/net/mlx5/mlx5_ethdev.c | 6 + lib/ethdev/rte_ethdev.c | 44 +++++++ lib/ethdev/rte_ethdev.h | 65 +++++++++- 14 files changed, 373 insertions(+), 27 deletions(-) -- 2.25.1