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 A1B67A0548; Fri, 24 Sep 2021 19:47:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27B3041331; Fri, 24 Sep 2021 19:47:26 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 4BC8741305; Fri, 24 Sep 2021 19:47:24 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18OFaZMh011094; Fri, 24 Sep 2021 10:47:23 -0700 Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2041.outbound.protection.outlook.com [104.47.56.41]) by mx0b-0016f401.pphosted.com with ESMTP id 3b9hf50dw9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Sep 2021 10:47:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NOgMUBVyMzAGpAOah+MNcX70DXTDyEnuNZ9EkSZh0MyeR29ABFuiJFyXH/fU5p4atxkvTvcRg0DhoN90CJj89C3JAy0vO4vTSOy/zwP3pgL7c6E69oN5pE0tOq23A0T9r0RPmSuDAxgv2ukAsYVowFtfLGaoq0hKkzySJ/3f8rj8halh/WQ+r+tfB3PTWzNQKBFFc8G/c5mE0Ln8DsyzTf2QVdTyeptDss9lS3cztjm+MQnHsGv8VXAcOct/FNqXpimE9qusK6Zk7QHSH/ZBpesRh7bOEYngVlRWC/MmWE/wzUiW1oS2HEbKbpKcciDIZhsBv50Z1uth8dI91XzN5w== 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=MQcAbFr0ibLXvEAjvA6QX78LSAfsw68wfsX3/ncZfGg=; b=j12Kt7Gn0Xoa/ESubI0DSzPcRzrISpBwJnySMBnflXKmLo20HIkypJ6vLAsf05NqqMKsAB+BR0pXQ2hFzaemWTLZ//Trj/fEqamsY5NwFzez9G7+tGXh5c+Brwm3HVyf0+FWGT0zx+I8HS7isti2cPNaiN56qmpR3ZS4PlJDG0B5oGnK8jcE6B01dR2088inmwQjNNZePuMhtrKar1Bnml+SZKiC5lq1TBfFAfKWhp4vVAvZtz4S3lynFXQeNeQL3BDI9jVTFfQEbneGiv7R+qbFIn6fbHXg+U7RhT8bNYEi6y84gYDjVVkkidL1TH4iJDgYxayfLGHImritVp0vNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MQcAbFr0ibLXvEAjvA6QX78LSAfsw68wfsX3/ncZfGg=; b=Xb8qUEg/B2zi1qtowjLoE9fbnvgJnxI93wgNnXVmjQv4UkaRLA9LYaOZZ8P7XUh1dANoybcuGt8gaQYZ+82wnrKrbirG+RNroBTXyU+9DrkJ+53u4JwixV2/TBdGgXy+YcbhwwjvnDFbc+YjXP6QMgILHQSLtI8/aYVqHU0bsI4= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB4418.namprd18.prod.outlook.com (2603:10b6:303:13a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14; Fri, 24 Sep 2021 17:47:22 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::6c43:3807:160:5a94]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::6c43:3807:160:5a94%3]) with mapi id 15.20.4544.018; Fri, 24 Sep 2021 17:47:22 +0000 From: Akhil Goyal To: Tal Shnaiderman , "dev@dpdk.org" CC: "thomas@monjalon.net" , "matan@nvidia.com" , "rasland@nvidia.com" , "asafp@nvidia.com" , "suanmingm@nvidia.com" , "stable@dpdk.org" Thread-Topic: [EXT] [dpdk-dev] [PATCH] crypto/mlx5: fix crypto QP indexing Thread-Index: AQHXqKhCLKo1g1zQxku61wmWoZHYbquzhwkA Date: Fri, 24 Sep 2021 17:47:22 +0000 Message-ID: References: <20210913140224.18788-1-talshn@nvidia.com> In-Reply-To: <20210913140224.18788-1-talshn@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f522f325-85c5-4562-30ac-08d97f835cb0 x-ms-traffictypediagnostic: CO6PR18MB4418: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7XDm9yr0YzXiFjcxMUPqJ389ZE2VvPCu/3fkEQkJ8qqCKS+pXFwTaDyn3nC7S4HVuZVVWmypR8Z784e6IKecYQ4s64t3asRNbEkWVy9WZ163WmJtWsEMW8m16P8M4TowxS9VFzXXsx4dB5D+6Raaa475Y8D+tx6B4qzklY+Dq2bwL3tO+HYF6zKu83dHqFUmPJq0qeIUemncv4NvpDuubzZ50s8n6v+BS+eRfm/VNNn7QS+fxa+ZuMWBoDjF3qUW16h3AvSqgAqPTXrQVdwDYFSHOdcHPk35Y+haaTR5vsmVk80eUj0r48ZHCt3fce+Mw07VLhzwBdKhmSGI7nuIaHUWNHaZ7XUMi+aa9bIdtz0ISUoGRTn8HfNUffqFD/e4HK+p7l+br1MYD3jPrUd62AadrYaxMfs3qRmkTwF1zywmBn6ZZ+3ye3+0km9WP86pZLCO/ucZm4vLEE63j85RYXzHxOGxFwvW5MLY+f2wBNHkOSttWp/h/ObvdgZgtQypwyUIl0Z/f8ZkGmCdr+JkhtfaDldCrNitRlQHwdhdoXlA0bJbSPpnuLtlQHc3k9rZhVPqQwv8C2WBdhec2fGiRjJb1lP2p8MEpcVV7xEFKg8qxpVQJ10pVdsT5jT0XtQrtNV+VXFxd4E7ijQooN/xI8LHhnLR0FfPet6Y2JOLIrfK8KBdzFfcQsNOmT5awCWAf/qWIvrpTMlG3HFrJAy1JA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6506007)(110136005)(86362001)(54906003)(66946007)(5660300002)(7696005)(66556008)(76116006)(4744005)(316002)(33656002)(66446008)(64756008)(9686003)(55236004)(38070700005)(66476007)(122000001)(508600001)(38100700002)(52536014)(8676002)(55016002)(4326008)(8936002)(71200400001)(26005)(2906002)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qgnzZmZMTm2kE17mFfUj5mkfHquZMamYrlgb9vksfw6RfZIhYqVh1C1/bi5n?= =?us-ascii?Q?KFGCAeaPSQuGgU6AOYVyllsQC1wxvnl8RLAzbnOc4u8gZkSbf2z5SY9D224d?= =?us-ascii?Q?7jJM2ISsDo/GdVw/Aln42PO3kNowVXKpK5HINWRGDBCxleNnRy33VyxQXsko?= =?us-ascii?Q?Wa5yrkcWqJ8nFDFByWBEwLhXWposKf/i/da/28OzWPN3TnSWTiaU4FC9H03u?= =?us-ascii?Q?jj+L9UoOXrMmmm2cuWOAcKGO1jcq1b0y4s84fhXnlxXWWiV1sUwD2yGv2xdK?= =?us-ascii?Q?iZemxAlbXYGCm8BT10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?Q?BROyVs+ljSr4LwtuNu1X3AgvYKqNm0qPWthuTY0o0KYvx1O1QUzm4N8lzwLU?= =?us-ascii?Q?vEd3GUEdG7ZueILVGLCDJ4GgfT5JFnmjbu7h8CuGFAuSSaYFR/WiYvagEGBW?= =?us-ascii?Q?nLchVC18jRnEy5u4a/cW1RB9?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f522f325-85c5-4562-30ac-08d97f835cb0 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2021 17:47:22.0954 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +2M9ltBzpjpw25uL+uZj51qPZhNoK652JeS0qWnYmRn5dYJkNs/LVAsPy5S4M/xzQWaGG5Owq0joQaTZHsPbBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4418 X-Proofpoint-GUID: LPkcqTA94JleIwSw-J7bgl_yj17-9F_5 X-Proofpoint-ORIG-GUID: LPkcqTA94JleIwSw-J7bgl_yj17-9F_5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-24_05,2021-09-24_02,2020-04-07_01 Subject: Re: [dpdk-dev] [EXT] [PATCH] crypto/mlx5: fix crypto QP indexing 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" > The crypto QP consumer (ci) and producer (pi) indexes are increased > with each successful enqueue/dequeue operations. >=20 > However the QP pi index is calculated with a wraparound the number > of elements while the QP ci does not. >=20 > This is causing incorrect engine calculation for encqueued WQ values > (wq->pi - wq->ci) and eventually the device stops accepting new enqueue > operations. >=20 > Fixed by removing the wraparound on QP pi and using a temp calculation > where wraparound values are needed. >=20 > Fixes: 8e196c08ab53 ("crypto/mlx5: support enqueue/dequeue operations") > Cc: stable@dpdk.org >=20 > Signed-off-by: Tal Shnaiderman > Acked-by: Matan Azrad Applied to dpdk-next-crypto