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 247D6A0524; Thu, 4 Feb 2021 17:51:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1063A2406FD; Thu, 4 Feb 2021 17:51:21 +0100 (CET) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by mails.dpdk.org (Postfix) with ESMTP id C3FA52406F4; Thu, 4 Feb 2021 17:51:19 +0100 (CET) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 04 Feb 2021 08:51:18 -0800 Received: from HQMAIL107.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 04 Feb 2021 08:51:18 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 04 Feb 2021 08:51:18 -0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 4 Feb 2021 16:51:17 +0000 Received: from HKMAIL101.nvidia.com (10.18.16.10) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 4 Feb 2021 16:51:15 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.104) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 4 Feb 2021 16:51:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AstU2go6yX9hrDpPCCCcwYqzUpLM6+bCJZy/oIMjAJm7xfTuCfzYcwLFfFXkZxUGrG2zBySdvPH9G8z7Y7bQEsqHuCB+29HVtV9zVZ/4oEVzF5s+O/v3GGYtnRIrCU+uESiZlYWtJyGsZ+RytD614Vm+6NRfqCdyywOVFBzFt3JSfdr0ZXzQg1dWfP5tu/xaieCT1SW6WyeSRUyP05TP/g2mAvQUl3QLN98dQJjepIBwuCHisJKZTi/AW7X3jGB1LecznBdop4EgA/Npj4jkgK+aQg3Ia6JbntW+nh4JTkDgBMLySG77omBAwBWW0G9DujUBS8mTD31zLs6An3s9UA== 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=phxJJ4odVDkEydpqyBMUS2ofnBmyzpJZ38q2A9esg0o=; b=HhrMvcsO9qaPKZej9sHb8F3sqXyAtjLCpS2A9ibP4cRyDCfBbe6BHjQg4diGy4E9rXAusIN7hX5pclRf2AaR5EdqxfQl6/zFdOuXViONZbimkR77Wz1DC4KM6cMtYVaHCH3cffh/87Tu+5dLg0opIkU6jIc+2GF86JupNnmL9hxurzYj4+bCBMyvL/nRzEvFQUuEwD/1sjX6dbRancbbnX1PuqGSFKTQZChkbdiy7Ynm2UeGnBXClQAmFLQc93XilQqQj5Cz2adPcvqtAZYhXkQLYPsQi9L4FFHCBLjvJ0qO2Ba8mnD2oRa0A1kdrJPqC+Tw9kpjWeCcqL6bpUqEDg== 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 DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM5PR12MB1322.namprd12.prod.outlook.com (2603:10b6:3:70::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Thu, 4 Feb 2021 16:51:13 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3%7]) with mapi id 15.20.3742.015; Thu, 4 Feb 2021 16:51:13 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , Ori Kam , NBU-Contact-Thomas Monjalon , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix Tx queue size created with DevX Thread-Index: AQHW+u3lVWyDH+Zu9UO1uoRwkVzKNapINdZw Date: Thu, 4 Feb 2021 16:51:12 +0000 Message-ID: References: <20210204120409.1194-1-viacheslavo@nvidia.com> In-Reply-To: <20210204120409.1194-1-viacheslavo@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: [188.161.230.58] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 04ca03ca-7f00-49d4-b7aa-08d8c92d14ab x-ms-traffictypediagnostic: DM5PR12MB1322: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-header: ProcessedBy-CMR-outbound x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sKoAo25oSgUqw9VZaPjf0szYx8kPxKUmO6pe0ZvUQekCtcB5plS/flELNHOz8YR9/nKFQevwKMyLeaaKhntnPNjK0YaPANynh2uKDeFzqlzyZw4buDXr+Q8Mlgv5XQkUk9TZ72SrdRjpZOY4gyhF3nx+vz45eAHj3zUd9ZO8BrM1xhoRKCeV5u/2Mhm4BqfDaLCT8h1ofJcbgq/X9Sct5hWszxVorI9/ISsZCC4yVnfOpCpo6vMwzHkPZn7la1D75BqpWbXq7bLT21aAa6mtqMtukZe+IqCJINkIU+NV5++beGPvZQwrnVCEPalO4cECVIfk1OL13bv9LO6FJWJ3k4atYHDyLGtBsfZwvuSFeCFJtAMZhS5tdcYtCpnwTZvYC89jM7WLk0BvOOVjXq72Za4T00aKEP9DTOcAK6nXi4PrmhzxN0xULFl8EczxizqfrT2ZASsanufmIdhwCQARHyR3Buh8Hbh8+2U6rI0uMs90pdXnGe3DTFXQeqkD8opFXmA76jxDY9whUiMH6VjNDg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(71200400001)(26005)(2906002)(86362001)(53546011)(66446008)(110136005)(83380400001)(76116006)(6506007)(4326008)(186003)(33656002)(55016002)(64756008)(5660300002)(498600001)(9686003)(8936002)(7696005)(52536014)(66476007)(66946007)(54906003)(66556008)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?LAORhD64VniRp3rxjNO+Bu9ZzkGSS4dRznHdp2MzpHuHcGUZm/Vm040p4anP?= =?us-ascii?Q?75pP/vp+qPUxi0sMuZpjUXHdDqde28qtJW8xiEgTm0LRnsZ2k8ZSwE5D5d4f?= =?us-ascii?Q?BFqCPb147bAyhcEpdLXdD9tcd5g0iOP9gdGWWy/CN/DxA1nsoM17rfLe/7OZ?= =?us-ascii?Q?BEFOO1WY6QHEV5VEPiofAIMX2j8DbKkRI3c8cxCHZN8o4YO46x1AAO2gCzLu?= =?us-ascii?Q?Bj7Uup9F5mlMTftC4HZlXkWmhB8BO84s3XixosOionhYOTWWPdMwh3FeTR2R?= =?us-ascii?Q?K+AAtp5bYGwPNmtgM4P2qTCAIR/iekfsCHcq+iiFCjwgpEp0Vs6avIWeJTLH?= =?us-ascii?Q?8GhlkWL22nB2wuJgU7Ud/kSSwfnDd1sfrBnpK07IUe/8+tu/0AOKw94AdcyL?= =?us-ascii?Q?OW4IW9BksWgqWSAsYBTezEfB8lLDR3QW3Fc0JYyEN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ckF61/dsaIVQLEmc6VbDiJh?= 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04ca03ca-7f00-49d4-b7aa-08d8c92d14ab X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2021 16:51:12.9365 (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: lCwRlu5lSABqCUuV9u3LF7AfihRcYMGVBOiiZ6cTfRg28G8Mk8YtonVyvUdSYiWIFocDtNwW2DtaM+WAvfjL+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1322 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612457478; bh=phxJJ4odVDkEydpqyBMUS2ofnBmyzpJZ38q2A9esg0o=; h=X-PGP-Universal: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-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs:x-header: 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=X/GN+FepzWmCqDjQMflhMmGae3LD5ICY3oZvn1bMIZIsNPQdpxEhUjwSc/qG/s/LN X6tRr9bPR5mDkmKb1rFfB8br3+Pqb0TgvZ05l4LHy3p0nhcfnyFZSEEtjjVe0FhC8C n+5skE3zMFKSwrrllIbLiva3hP1pSOqt/IQbIPbyv2SwQ+60FKluf174abR+pdnrVf M6lPc/7Xz+0Nua84kYLlod6yWqiw0ObuiWKG86Qdygrzadq7guXnkNZJ3F3ToI8riJ ior7UquMiIV5GJ46mdxnGRg895BAEOfPLBTDQm4fENCfNr+mgpWRQL/u8tv4TGb3Gg YCuXUmnQGxSUQ== Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx queue size created with DevX 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" Hi, > -----Original Message----- > From: Viacheslav Ovsiienko > Sent: Thursday, February 4, 2021 2:04 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Ori Kam ; NBU-Contact-Thomas > Monjalon ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix Tx queue size created with DevX >=20 > The number of descriptors specified for queue creation > implies the queue should be able to contain the specified > amount of packets being sent. Typically one packet takes > one queue descriptor (WQE) to be handled. If there is inline > data option enabled one packet might require more WQEs to > embrace the inline data and the overall queue size (the > number of queue descriptors) should be adjusted accordingly. >=20 > In mlx5 PMD the queues can be created either via Verbs, using > the rdma-core library or via DevX as direct kernel/firmware call. > The rdma-core does queue size adjustment internally, depending on > TSO and inline setting. The DevX approach missed this point. > This caused the queue size discrepancy and performance variations. >=20 > The patch adjusts the Tx queue size for the DexV approach > in the same as it is done in rdma-core implementation. >=20 > Fixes: 86d259cec852 ("net/mlx5: separate Tx queue object creations") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh