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 EE1C7A0A0E for ; Mon, 10 May 2021 18:05:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8A154003E; Mon, 10 May 2021 18:05:31 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2076.outbound.protection.outlook.com [40.107.212.76]) by mails.dpdk.org (Postfix) with ESMTP id 5C0E140395 for ; Mon, 10 May 2021 18:05:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KlcbLbMYrQzYhTbbZX6YbcL2a+2TIR7wgtcpKeERWDmwmmvbvBm7BxpBNvtSA8xbtPAovC5JgbqQARhruTnILXWJA4At6jx/iBG6RjG/2G2KwINAgYopsF7svz39J+vNb305tH8PCk9C19iTxV7XdXb7LEKz/9+XnpF4z/5qqH6NO+Mvn9eT+KwZzJa3g4KyOCmnh2kpI2eQTVvIm3C/kKCeAZc3drPHNNe8OqvNNVV4Dznto7knNi+/BHZV0xqlipyKHFevnan4enjMEuMuXTPgmEmdABW971w6bfVBpGzcUgqrlU9hqqbKh/Dq5DLa7qXh8NIScVKspShniuDQUQ== 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-SenderADCheck; bh=b5PgBhM8jlZAH5plOBteed9UgagMi1SMzHWsJIqoDAw=; b=Av+OfxcxTx456NqB5O+OpkNQCftLJ3BZAZzPfB2WOHGqiY90xMDZ7IdnhHgkh+71kQKKxfuzfsJb7ho8H83wRanb+uAda4t45in3jLwtnYYPkbLDzjv3rOG1mjY6pq3Lu3yYgXdYWvNeZJzTiQk9R/EvFtCV2gUG+TGiuEXelxGQ6N40mjHU80RcGhfrKKqYplU+1roKP3WPKdTzIccQIIvrcjMh7Cq2XG61l0UDi85JFdjIYO3z3BqQivVFWhY+Sedq7M08IBvUkCTYaD/viu0cbmdRD3RO0xemr5rFBL+W9mlqr5c38kFsoBucThI3ERDGfficeWHhwyp34+W+0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=b5PgBhM8jlZAH5plOBteed9UgagMi1SMzHWsJIqoDAw=; b=USdhJ4YWU99udK0yiOXEbCtiCHKwagwisDzdRMOJGYyeBEvg+gIKQbJjqkz05yzh3xBoNX9I+zOcdiwXqAJ6OKJYuGBNONI/JLxincr60EHmZoWUjayVKZhcQYK7kyB1tXunUUqAW5rn/IAjavz20JTeUzOq/ea4nN1OhNpTXto1osOxPT7IEtpA91QbcWkr6oodGMeAb8TumxZSUR5diyAcoD/9M4sXU5Sf7xT4u6we4Vi1eEHSGslzZy/Gt3Oqwy14WRBZnaIpnFuypsYOe2ablxDfYVHpBGHBNNvTEmWRzRelQ+LLF6ii3p9q/Rvsjh/mqBLOll1HQDhE4q37NA== Received: from BN6PR1401CA0007.namprd14.prod.outlook.com (2603:10b6:405:4b::17) by CY4PR12MB1863.namprd12.prod.outlook.com (2603:10b6:903:120::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24; Mon, 10 May 2021 16:05:29 +0000 Received: from BN8NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:405:4b:cafe::39) by BN6PR1401CA0007.outlook.office365.com (2603:10b6:405:4b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:05:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT045.mail.protection.outlook.com (10.13.177.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:05:28 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:05:26 +0000 From: Xueming Li To: Matan Azrad CC: Luca Boccassi , Viacheslav Ovsiienko , dpdk stable Date: Mon, 10 May 2021 23:59:32 +0800 Message-ID: <20210510160258.30982-23-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40f57197-1d63-47a1-10a8-08d913cd6e6c X-MS-TrafficTypeDiagnostic: CY4PR12MB1863: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DZ6rjR0dxWm58lctSv8GKOrPQsigrmTSLUmjEJ0NyugGfwMYuyETxQQhqntz47kmXzgjaHjt/ths5lVZvhXzNmTS5MBLYNq2N8E6xSGtx5FEMqTyRueFebPMSM57yra423knPWgnTrhdRz2cT1r9TOjFe+R8njVqvsZt+/gt6KU72xHUMh8kDh1Vc52tPriR+fHpR3KB9k/yH4lugv+Hmzstk/Nc8ochn95qzPcO5XP8b9fbeUKU6/CAsQcEgDBVUmsAxxbsxdHtyOaSgEiB8oUiFIfVItsTtph8igDDZ63MvGrguRzivXFP5NiY7bLQljWYsW1IJkLKuKIXLUF7cmAnBFT18gSJhh+eni10E05U0vNFTiiH6cx4bjVGkQAKuuQOGucjRUNKv1H8RKpMlEr1pUfXMWErQU7ED35D0JLSO2yfwwdAhuxDyiitd1U3v6/saCQnHPHrcVyQmKzQoFH15mYacfeDpkv6nkSoct+iWe/tc8wVZXFP4wz6BcJCLruJ3m3id7+rwXBku0wJVejubG2zYOkC2v6wCQrhm4x45+l5rkV/yn63NotQSMRuM0sQLAjXMNwG030qzkBMrtHlCJ341MnO42WRSVMY/c5E0sahIe5MAOVL2E4uhNV5GkoRFK1XhBJ4xIWmY8OwomQaqbg/JcACLmiha+xUE0K+Y64Gttj4WnDa97nYFD5+1grhHT3lKscHtG5/u8LEKtuakLLGhdX6OBW36YoelQ+/87Rk4xqP5xzp1c3V2acqQuJanJ5IX0bu4jPHgX8Utg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(346002)(376002)(396003)(136003)(36840700001)(46966006)(82310400003)(86362001)(336012)(8936002)(6666004)(186003)(36906005)(37006003)(316002)(5660300002)(16526019)(7696005)(54906003)(36860700001)(36756003)(966005)(47076005)(478600001)(55016002)(7636003)(6862004)(70206006)(70586007)(53546011)(82740400003)(2906002)(4326008)(356005)(8676002)(26005)(6286002)(1076003)(6636002)(2616005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:05:28.8576 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40f57197-1d63-47a1-10a8-08d913cd6e6c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1863 Subject: [dpdk-stable] patch 'common/mlx5/linux: add glue function to query WQ' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/fba807cae93d7b42aa0bdae5e92d1bb9f604d376 Thanks. Xueming Li --- >From fba807cae93d7b42aa0bdae5e92d1bb9f604d376 Mon Sep 17 00:00:00 2001 From: Matan Azrad Date: Thu, 25 Feb 2021 10:44:58 +0000 Subject: [PATCH] common/mlx5/linux: add glue function to query WQ Cc: Luca Boccassi [ upstream commit 75a9a73ddbdd3e7581078752aadb1c980617e739 ] When Rx queue is created by VERBS API ibv_create_wq there is a dedicated rdma-core API to query an information about this WQ(Work Queue). VERBS WQ querying is needed for PMD cases which combine VERBS objects with DevX objects. Next feature to use this glue function is the HW queue counters. Signed-off-by: Matan Azrad Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/linux/mlx5_glue.c | 18 ++++++++++++++++++ drivers/common/mlx5/linux/mlx5_glue.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/common/mlx5/linux/mlx5_glue.c b/drivers/common/mlx5/linux/mlx5_glue.c index 8146c79287..964f7e74ef 100644 --- a/drivers/common/mlx5/linux/mlx5_glue.c +++ b/drivers/common/mlx5/linux/mlx5_glue.c @@ -1067,6 +1067,23 @@ mlx5_glue_devx_qp_query(struct ibv_qp *qp, #endif } +static int +mlx5_glue_devx_wq_query(struct ibv_wq *wq, const void *in, size_t inlen, + void *out, size_t outlen) +{ +#ifdef HAVE_IBV_DEVX_QP + return mlx5dv_devx_wq_query(wq, in, inlen, out, outlen); +#else + (void)wq; + (void)in; + (void)inlen; + (void)out; + (void)outlen; + errno = ENOTSUP; + return errno; +#endif +} + static int mlx5_glue_devx_port_query(struct ibv_context *ctx, uint32_t port_num, @@ -1403,6 +1420,7 @@ const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue) { .devx_umem_reg = mlx5_glue_devx_umem_reg, .devx_umem_dereg = mlx5_glue_devx_umem_dereg, .devx_qp_query = mlx5_glue_devx_qp_query, + .devx_wq_query = mlx5_glue_devx_wq_query, .devx_port_query = mlx5_glue_devx_port_query, .dr_dump_domain = mlx5_glue_dr_dump_domain, .dr_reclaim_domain_memory = mlx5_glue_dr_reclaim_domain_memory, diff --git a/drivers/common/mlx5/linux/mlx5_glue.h b/drivers/common/mlx5/linux/mlx5_glue.h index 8be446a902..9e385be957 100644 --- a/drivers/common/mlx5/linux/mlx5_glue.h +++ b/drivers/common/mlx5/linux/mlx5_glue.h @@ -307,6 +307,8 @@ struct mlx5_glue { int (*devx_qp_query)(struct ibv_qp *qp, const void *in, size_t inlen, void *out, size_t outlen); + int (*devx_wq_query)(struct ibv_wq *wq, const void *in, size_t inlen, + void *out, size_t outlen); int (*devx_port_query)(struct ibv_context *ctx, uint32_t port_num, struct mlx5dv_devx_port *mlx5_devx_port); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:27.308924500 +0800 +++ 0024-common-mlx5-linux-add-glue-function-to-query-WQ.patch 2021-05-10 23:59:26.350000000 +0800 @@ -1 +1 @@ -From 75a9a73ddbdd3e7581078752aadb1c980617e739 Mon Sep 17 00:00:00 2001 +From fba807cae93d7b42aa0bdae5e92d1bb9f604d376 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 75a9a73ddbdd3e7581078752aadb1c980617e739 ] @@ -13,2 +15,0 @@ - -Cc: stable@dpdk.org