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 48C90A0547; Sun, 26 Sep 2021 13:19:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CD5740E78; Sun, 26 Sep 2021 13:19:30 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2047.outbound.protection.outlook.com [40.107.243.47]) by mails.dpdk.org (Postfix) with ESMTP id 5B86640E5A for ; Sun, 26 Sep 2021 13:19:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MY4+CzNmB/6+AIBLQksBvz0OF1SueeOy4YoaU+JXC2Z2Xt/AGBkm8B4qAgUEvxfMPndkpBC9Ffvm5n64rUz0wLNzARPJdbB/B/IaSpT0d8fc5CpQIyxw5QlXVJLCAGu7vtR+RXf8DkN9ECohB3Orb70ZcWLB2ra4DH5hEStD9nvceZ4Gt9nBwkDeqzlUf4PUbiLjhU0IUvNiluISHSO0UcjQ2AyUN5vNet7cYtkEgSbFgAOrrxVpdPf+JimTe240gBRyT2FIXkEfACuUAHzVlabOwVKRszWUcpJrGdCQNHHyqYkVdZTR4RMnqrnNVAZF8xweVXzPbKz80ZKvPhEaXQ== 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; bh=oaWZO91GZm0+dBLxIjIE627qw8cBmU0VQyilu8jxdPk=; b=N+yRCbCi+ECeP49kSntwoasHQugijPs4DtBTJ6UpNzKK4dHV1/O10+EGAHRFj41N1FUo0uPE4AwzGvqAtPdmiDlcbR/218/c78iCBZBly8mt2G3IQEMYCCjQSDIIQ4hqU1StB24P0hbFsNN62oSQ/RMl0HY5KIxtigF2ZgqbNkTRJhUgz1ozCKzTMRf6AVQOQvnlPQR1tDfRvs6GBD26vtnCvErcKJS1xOJ4m83eNp56d+HqE3w8HTu6jQ1jcLCGXzjy/1Ot1Tgu6V8nqTZ6Pju0c2LU7IxxoRokF7Ha/gbQ1CFlxyWROwS4oi21PrtSGvhqWYaqX/frSiNdvs+j5Q== 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=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=oaWZO91GZm0+dBLxIjIE627qw8cBmU0VQyilu8jxdPk=; b=mirvcmD65KOCdF3EaT1Vab7aQ1FfiGx1CtLi2BwiYxE0Xansl1smkXHymV2ebedVkD1bcFkHfE7uKQQSeUTCQfz+FLOOFfUptTechrd3yjgcPBn/I5LX/d5g9BNhv/DL1nR8hbQBa5QpqLZ2g2a2JRitQameZivdCbPNZxl89RKOH/ajP+eYxh7g2+AtoMbMDrvqUTY2Pd4KhDcN+fGaHZh2hK/Mtek7o+/HDoFF+qSYYyFphuOLvfa49dhePEeva4SYAh59oBlJS3QrUoCpfzttjz3qSmsYf84HdoR9c3/RPSQO4rcVaooiWIwi70DdV3jAhHlCjsHOUVye528iHw== Received: from BN9PR03CA0847.namprd03.prod.outlook.com (2603:10b6:408:13d::12) by DM6PR12MB2731.namprd12.prod.outlook.com (2603:10b6:5:45::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Sun, 26 Sep 2021 11:19:28 +0000 Received: from BN8NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13d:cafe::ef) by BN9PR03CA0847.outlook.office365.com (2603:10b6:408:13d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15 via Frontend Transport; Sun, 26 Sep 2021 11:19:28 +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 BN8NAM11FT044.mail.protection.outlook.com (10.13.177.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4544.13 via Frontend Transport; Sun, 26 Sep 2021 11:19:27 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 26 Sep 2021 11:19:26 +0000 Received: from nvidia.com (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 26 Sep 2021 11:19:24 +0000 From: Xueming Li To: CC: , Lior Margalit , Matan Azrad , Viacheslav Ovsiienko , Ori Kam Date: Sun, 26 Sep 2021 19:18:54 +0800 Message-ID: <20210926111904.237736-2-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210926111904.237736-1-xuemingl@nvidia.com> References: <20210926111904.237736-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 39866808-aeae-4537-0648-08d980df80fb X-MS-TrafficTypeDiagnostic: DM6PR12MB2731: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1923; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X5TDlPoFLHRS8OwMQ5GHst685OqxRB8F6EiOL/zi2Jicxy+G5752N9H8Pqas38tUs7UqhMD15j3R0Ferr0kF3KyRaAcGlU6KWhjBDwRxbm+TeJLoQfaHVttgQIkLtNEohkvnj546mVZSLUi8Ky0lUkyrZnOTDMErXNpQ5B23qd+V6Uic0Hd+gvZdS6tFusT0zi9Y/Q7F7JpVTbSKNT/PD0vrJOWTgzGtHbtTuU4qL7WkZSELYD7Xo6JiLtX7dd0EFGjh3lQG7YZUFxLff2cgE2LqtA8xB8wWsjG+Cb6uAcAJnjt3aToSiHqoRVu4szr/Cok+oq3j/Fi3KfY3tBrrx+ckk6kqvdbb9agf21R/1T+ukNkWEHTq5AWZlNehnwZqkE0U1RY3Y6UhsEk269RexzkGL+iR1B12iqv3eytggE3M/qeHVVhV/n9PfxVHLNTn1sYCYY0sCJauaZzCVLPbPQ8mANzMwqWVZ5arS0DHwJ85KsPXJmNE8gtAuFgGhkuYDR40yM1qhtbJTgY2pcOP7anTjmHn1qhk7Ol9Gk5WlrgcRbv75zA9WpsleeceaArdbHRiXzDWafGvra199GAZ8Q0ANOktm+ghKlQcvdlnmuCag2aq8XXvrMRER3Pjsx6yBrxFup2zMg5V7d7r0KckaMg9U6fCs6VV/sb/C0MDwO+oIQrtobhcP+owVqHaRGa23o2FawNHCMqq1dDbIZe6Wg== 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)(426003)(6666004)(356005)(82310400003)(336012)(6916009)(47076005)(36860700001)(86362001)(186003)(8936002)(7636003)(7696005)(16526019)(55016002)(26005)(83380400001)(6286002)(508600001)(36906005)(5660300002)(4326008)(107886003)(54906003)(316002)(1076003)(70206006)(8676002)(70586007)(2906002)(36756003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2021 11:19:27.7883 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39866808-aeae-4537-0648-08d980df80fb 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: BN8NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2731 Subject: [dpdk-dev] [PATCH 01/11] common/mlx5: support receive queue user index 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" RQ user index is saved in CQE when packet received by RQ. 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 d361bcf90ef..72af3710a8f 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 c79445ce7d3..a151e4ce8dc 100644 --- a/drivers/regex/mlx5/mlx5_regex_fastpath.c +++ b/drivers/regex/mlx5/mlx5_regex_fastpath.c @@ -567,7 +567,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 sqid = cqe->rsvd3[2]; + size_t sqid = cqe->user_index_bytes[2]; struct mlx5_regex_sq *sq = &queue->sqs[sqid]; /* UMR mode WQE counter move as WQE set(4 WQEBBS).*/ -- 2.33.0