From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 33DA3A04DD; Tue, 10 Nov 2020 17:32:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1970D2B9D; Tue, 10 Nov 2020 17:32:10 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 32CA6F64; Tue, 10 Nov 2020 17:32:06 +0100 (CET) Received: from HKMAIL101.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 11 Nov 2020 00:32:04 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 10 Nov 2020 16:32:04 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 10 Nov 2020 16:32:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TpZT4fFP1c/7cLY/nCxKvOceIkqfpX13KsP3EC44my/cfwE5by5qprmaBWUhyfDXy/SnYRz3eoy5zy0aVOCgqU09E5Mf3pcFLLDZY6fQDRN22hQI8LcOYvSdQs/fDxpPMTLTb+ipdDjmsui1/VZSsemd/SXxJ69wZCBP5wGXHCZInLOrQulXkGtE8/y8v43faFlsoqPx+dfAqCd7wRPP3NcqMGpwlhOpC6idgKKmh/7MJy5h6i4WbQ/+kv/TjY+doCYBt0eLw9SqiqlPz6VW+4XSy9lNCLbcDB+G8EF99Qj80VutviplVIfRt8BzynjI/5ydOkSzBRkHBxSZQ2SrkQ== 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=C5878eHCaUxV/GGunWMOoRkO0T+BugWCn+je02IgifE=; b=boEs8bjUNn5MxVAni4GhEU8tYqSgok2mZ9nWXIllXuA3pL9ViAOx7jmhebCSPitYZr0qaxzDJxNwul78qermxKuFL0CbJpxjizDftnzL3AS5gqFswWvDnntgMiv2/+42atgcyYwO6TJwumQQZw9ihehHiVF1+Fv4SLG4dMZbW+HhUNUH+2kzdUR2UBWbKYwR/jzzSSlXbLtqHyB9d6KfbTlDXSIbsy9ffJrX9/mYojEdhrjJgUBVBd9XHIl7885KIuMM2rQ3Obc6C5mL5m/hW4in0fLx7L41PpGc7vJNG58BMYUdFOOhTTZeCIBpA+y8hYqR9xl7J8DQESfymMZJww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MWHPR12MB1501.namprd12.prod.outlook.com (2603:10b6:301:f::18) by MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.22; Tue, 10 Nov 2020 16:32:01 +0000 Received: from MWHPR12MB1501.namprd12.prod.outlook.com ([fe80::ec4d:f17d:402c:78b4]) by MWHPR12MB1501.namprd12.prod.outlook.com ([fe80::ec4d:f17d:402c:78b4%6]) with mapi id 15.20.3541.025; Tue, 10 Nov 2020 16:32:01 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: Raslan Darawsheh , Matan Azrad , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: fix info about Rx descriptors for MPRQ Thread-Index: AQHWtYeU6jo8Bo0IS0ejNtTNTnDHManBkrkg Date: Tue, 10 Nov 2020 16:32:01 +0000 Message-ID: References: <20201105235856.25475-1-akozyrev@nvidia.com> <20201108042804.29039-1-akozyrev@nvidia.com> In-Reply-To: <20201108042804.29039-1-akozyrev@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f7abdc20-085e-45e2-cfc7-08d8859626aa x-ms-traffictypediagnostic: MW3PR12MB4553: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PtxDrhNSeAXFxUSLrxomAS1j1vu+6sSelV0K+7lic8wzORFKSCUkcOpxZ3Q+bAM61kQ006a/8SSAdnwzJSpBmQzbbfT/pXw7b0AcbB4w/UeR9FRJ4Xje3PMWsXbI966HOiPSCe33Hk48MXc8kauIhbVU37IBHXcgRFoD0T91b/OMsAH58fRgCVX88GjzTtAJKvxerK8POskAY46JbZlmpDmdKgiQQHy6YCtO6nk3sATFPndsZel2vgFiJcjZ7+VbsoW4wOaRuSW6QaWwTPEuW9oC8lcJKNlQyrlmM+uSqPI4Cv4GBjYX5JukA+3HbHb8wyWiI+mWLyAdksmXS3UXVQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR12MB1501.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(346002)(39860400002)(376002)(316002)(9686003)(54906003)(110136005)(71200400001)(66446008)(66946007)(478600001)(186003)(76116006)(52536014)(64756008)(66476007)(7696005)(26005)(2906002)(4326008)(83380400001)(8676002)(33656002)(450100002)(8936002)(66556008)(86362001)(6506007)(5660300002)(53546011)(4744005)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Uvrfv43kKx8U6/K4kohjyl8jIuo1RDu1z9DK21XJMOhbHC/p0RfE+RLwC9ucgmNb4GYlI3BmEDhZVRFnWFLjbPHIdmriMqYUnctjKHv8DNtF7WUzMAd/f0KTpkOKOcKCX7gD0Hu9crWDICDfcjQxvygxzhV4rnWOa1h8AlzR/siis0HJW6l3xEwxhPyPaVScjXV6kGZUbd4BX8qDKNzwvh5TNB1ZNwf+o63uG2gR/+9BmjY1id6hdDrmb0pqOLlyr3OLvKjKbicCGM6RoQMK65g8o3iio++kaKEhBJkSenE1qZX2mjPCsfHUanM9raQ1wypnf9NqsXbDzldKcHqSSCuo5Y8L+/hQd5xaLPuoL9LjYNUF9X/Mh6myNCxjVqnebBi3sbsxGvB79q+xT/iVe3dbqYb2KxS0Ydy43EOP2Tvr/pBBfgM1/JSUh29dnWJ4PoOh3V37tbaPbwx4uwfo+9YCrbjQEKJwyV5DWrbI3pwY5ful35Yt0mHMZAJRrnTseKmu13n8NboWoCzcYW4idFuBGHUqMP2PvMk+Pe2pErruakB2XTtN35RJZhYJH+6N16QiClFwuiHbsDbOWllyjuEfxXcODePA51hQ+a3zFwHQbMEN2w8Gs9eiXMuhBm49wW26gEKqkdeq4Q8hbZEgZw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR12MB1501.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f7abdc20-085e-45e2-cfc7-08d8859626aa X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2020 16:32:01.1962 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Zm06sM1EmVn+I/aVIleg2H2a9O4GA0QPU2eFpIHzHxwbuci4bUjrAthWzeEMMxUW/Y87OgRR0hQx2tisWAGagw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4553 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1605025924; bh=C5878eHCaUxV/GGunWMOoRkO0T+BugWCn+je02IgifE=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ms-exchange-transport-forked: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:Content-Type: Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=B9z3BKyrylzKdaOYmFsHv5wcwNgIV4zHAeP9BVWiRG+E1qwSEnI/3QPCzCw1EJBmS KL34pa+BO/Mvt6P2tOuOKyVWZG7Qm67t0w6vYxU03KS6UHXwizqBadXuogprayQJeg foaAJ+pjrToam1UXPbKiAdONFu1zDbzW3Ywf0cluttNxxrDyrdrEIUacaU/+fFYY6/ RRgAoNDpYGEPVtKUZ5oBoHZoiQ6/vBNbtytXnde3L4bWo/lLS8GI39uqYso4mXIegM XrlSvvd8rmPN+qcow4judnnORFRfOYUy2R2VyN4y6DhgAcrmCuRqGc5QBiPN/mj3JS yKNTUFDox7kVQ== Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix info about Rx descriptors for MPRQ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: Alexander Kozyrev > Sent: Sunday, November 8, 2020 6:28 > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Slava Ovsiienko ; > stable@dpdk.org > Subject: [PATCH v2] net/mlx5: fix info about Rx descriptors for MPRQ >=20 > The number of descriptors configured is returned to a user via the rxq_in= fo_get > API. This number is incorrect for MPRQ. > For SPRQ this number matches the number of mbufs allocated. > For MPRQ we have fewer external MPRQ buffers that can hold multiple > packets in strides of this big buffer. Take that into account and return = the > number of MPRQ buffers multiplied by the number of strides in this case. >=20 > Fixes: 26f1bae837 ("net/mlx5: add Rx/Tx burst mode info") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko