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 81DC5A0C53; Wed, 3 Nov 2021 08:59:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DF9D41140; Wed, 3 Nov 2021 08:59:13 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2083.outbound.protection.outlook.com [40.107.243.83]) by mails.dpdk.org (Postfix) with ESMTP id 38B1E41135 for ; Wed, 3 Nov 2021 08:59:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jzn0J97IMeVFzDTuKVimvm9ZjQR/QvbGYwR88s2RpqMqq3pRVHdkzgXhuOBDKHBIIy0fuNTgs7QAGigU3rToOapG2Ilm1j9MJCQRXR49gZf6ZczblpVXb7Qn55nNoBF4oueScZFBVNHdQ15a6scaq53tjKTeWj5pDHRMcAiGGHvIRsyAdpyBeefWL2rb0TPtqFzsZyQDS+b4wsU9bArmQIZPqy3BHsOVNm5RQc9EYcyiU38SwJ1cv+6JGTZdvspyIZ28dmI5WS6HguNfRJxnAZXpEo/JkjVjE6VFeVfyvkyA276Re9zVKRsn9qML7cb7LVN1Apv3uQeElvzPS0KGOw== 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=zPqO5sBCfQKHlitMrfMD2NmmA+iKd0kWkoNhQ+OLWEg=; b=QRGIXee5BTyJxuKs45W1enQPP4PTsCuYE1NBDvlag778Co6hg0cO0M+GFVwWw4ZrAnZE/NZvz/d9dGW71WQYUx8daFtpmdjpDlL29n9Mrk/EYGAnO2xGnOanynmsMhDp496oR6i7iRljlbgX6L0OAifIdVtlUgb8WW8HwvUVv7/2nCQ6m3kgREVYZjsO/FbIRLEQ8IcHr1xiNoqfugC4vObMf2soITetWCXaiHboFITSnRzlhAvFHNCwq62bxnvMa08aVyb0pbfiIe7ejq15ny5F5oycq2LmGHZ/EaqIMJqbVNT/oSXhxUKn0z6ASzJcAD/TYxGwNyaJFeDy6U1h9Q== 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=quarantine sp=quarantine 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=zPqO5sBCfQKHlitMrfMD2NmmA+iKd0kWkoNhQ+OLWEg=; b=d/eMlL0zDwaeV1L34Un1/HvOKHOcrENheoK23o8bkP4nxXicMoxbcEgnLU8rDDz/KXvFeT7E03//AmS44xa1J3L5lJ4G3+ZlDCoyKCZuCq2cHLUvQn6UET6yYS7IHshhxnFHQn7VuVFtPxdKiBkBGsKC47Xpbscvs7FteVQJqdJ9s5yE+WjyoPtdUfI+BmnInJpQCpL2MPy9P3QXWy2lWAnjc15z8M2ReNtre6kPT7PCDY67LupQSKstprJos80HlcAzcPbxrcCBGYvpp8tpMqE388z7M+3yTC8BfzBbe8dU2uou4Uh3lCibYVubtscqbdya+6rGySdG8iWWYwD5hw== Received: from MW4PR04CA0220.namprd04.prod.outlook.com (2603:10b6:303:87::15) by BL0PR12MB4930.namprd12.prod.outlook.com (2603:10b6:208:1c8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Wed, 3 Nov 2021 07:59:10 +0000 Received: from CO1NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:303:87:cafe::82) by MW4PR04CA0220.outlook.office365.com (2603:10b6:303:87::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 3 Nov 2021 07:59:09 +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 CO1NAM11FT066.mail.protection.outlook.com (10.13.175.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 07:59:09 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 3 Nov 2021 07:59:05 +0000 From: Xueming Li To: CC: , Lior Margalit , Matan Azrad , Viacheslav Ovsiienko , Ori Kam Date: Wed, 3 Nov 2021 15:58:25 +0800 Message-ID: <20211103075838.1486056-2-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211103075838.1486056-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211103075838.1486056-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca2f702b-2efc-4fbf-682e-08d99e9fd0eb X-MS-TrafficTypeDiagnostic: BL0PR12MB4930: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tMd38PJjOCPt4KFZ99vKq8LTEggNhjsv+A3jc8xGLmTIiSCSZtleCq8lGoFCeeIg+bOwxj1Yp3D9Ym9elEk74svJ71e/EK+jKeIozsLP649FEoZ1DN7JCBHpABIoKEO2fk+vvUQP99OcoK33YvGWfJbXvzX640f5XSjJkgwJYSecrHQ9z0qGsvLsE4aZa4QRNKMG2qQNOQ6S/N6orf3uLe9FbXfPMHAlxFRSgTpO9ML7tTm3+PJiNqVdjgcNLZmDGYo3JRfgXoMjKiyfyFCSmT0wVkFEITiLHPmbsxDOwDjZpev/48DKYmfqA9TNSP8nzC/uYaYHvoXooOG7WHfwVLidw4zT+DRRcAgNqyJXbfROwTl2icENjFiEEr4lWkxJtN17+fCnHkQfbc1+zsIIFcZun2ZxriXmg+IXPA0M72Q18tiCmMJVELwL4wFtZsd8Ib6DoKYTNS2jXTwq53EsblujB4uxT1PbeBFSKQ6GKb0VqNcF/ssvg3h3HOxq1G8rsegkagbG3jzS7Fi/z9mBSOAR2R7VbyVImc6DgbEpWKya7drueA+EJAQhhFuIhj20xtJ4Xe0e7F+JuqTQUFMsF1HBX4Hh5Ri1/qoIFQSDXBdzmSU6dKKwkgPXtKh3/lAwZYddiz1APtKHh9LdwcZcVTIMVDYEWHk7FOJcwUM0mdHntPdmtHu1kldVyLbHtw3wCJWl2VFVRH3UuAmWbeKkew== 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)(36840700001)(46966006)(54906003)(508600001)(107886003)(1076003)(5660300002)(36756003)(16526019)(2906002)(2616005)(7636003)(7696005)(26005)(6286002)(186003)(55016002)(8676002)(70206006)(8936002)(336012)(426003)(6916009)(36860700001)(83380400001)(4326008)(82310400003)(70586007)(6666004)(316002)(86362001)(356005)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 07:59:09.0663 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ca2f702b-2efc-4fbf-682e-08d99e9fd0eb 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: CO1NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4930 Subject: [dpdk-dev] [PATCH v3 01/14] common/mlx5: introduce user index field in completion 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 Sender: "dev" On ConnectX devices the completion entry provides the dedicated 24-bit field, that is filled up with some static value assigned at the Receiving Queue creation moment. This patch declares this field. This is a preparation step for supporting shared RQs and the field is supposed to provide actual port index while handling the shared receiving queue(s). Signed-off-by: Xueming Li --- drivers/common/mlx5/mlx5_prm.h | 8 +++++++- drivers/regex/mlx5/mlx5_regex_fastpath.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index eab80eaead9..53931ebf1cc 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -393,7 +393,13 @@ struct mlx5_cqe { uint16_t hdr_type_etc; uint16_t vlan_info; uint8_t lro_num_seg; - uint8_t rsvd3[3]; + union { + uint8_t user_index_bytes[3]; + struct { + uint8_t user_index_hi; + uint16_t user_index_low; + } __rte_packed; + }; uint32_t flow_table_metadata; uint8_t rsvd4[4]; uint32_t byte_cnt; diff --git a/drivers/regex/mlx5/mlx5_regex_fastpath.c b/drivers/regex/mlx5/mlx5_regex_fastpath.c index adb5343a46b..6836203ecf2 100644 --- a/drivers/regex/mlx5/mlx5_regex_fastpath.c +++ b/drivers/regex/mlx5/mlx5_regex_fastpath.c @@ -559,7 +559,7 @@ mlx5_regexdev_dequeue(struct rte_regexdev *dev, uint16_t qp_id, uint16_t wq_counter = (rte_be_to_cpu_16(cqe->wqe_counter) + 1) & MLX5_REGEX_MAX_WQE_INDEX; - size_t hw_qpid = cqe->rsvd3[2]; + size_t hw_qpid = cqe->user_index_bytes[2]; struct mlx5_regex_hw_qp *qp_obj = &queue->qps[hw_qpid]; /* UMR mode WQE counter move as WQE set(4 WQEBBS).*/ -- 2.33.0