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 48ED7A2F6B for ; Tue, 8 Oct 2019 11:33:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1F41C37AF; Tue, 8 Oct 2019 11:33:33 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60074.outbound.protection.outlook.com [40.107.6.74]) by dpdk.org (Postfix) with ESMTP id E3F481BFD9 for ; Tue, 8 Oct 2019 11:33:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Um31KLryf2JFtTtQ2mmVUFi9tNUWmfz2n5QtxIYx325mHZqys1gAE1Bgww7V+ePTzKB2i7byxNbjiRlYvEVdmCbxmGxYkkh2CkDJllgks6qlfVM4URjD8gEhsTPICxb0pTORkCXAUJUim3eSCR2aS9aTg4Yse9EKZcBfbcjW8SlnEC28j9LRETY3t/84N+eri9gGhdYiyOw/p25cNryAazJkrLjG2Y7+HyQ8X0bkdq+u+arH/12zLxSJ0iJ6j7HlL+M5elQ30ky2N7CNyit3q0YK7+kfTPUxxXf/yZtd1fgDD/LX1n0drfLDNRtvRZFo90FJWI25DdEZKmZrFk/ARw== 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=wdfSGM5SHgu20X8RDxSlYBk7C0CxZUgmgZee4MXquTg=; b=Y9Zk1hz1v1pGZ5CWIggXDC9Es/1JDlcYSTbAZ8NbVn8Ml5kqem/w2+SD8SQcTx8b1owkMuENu0YjhNE/o0SA3RAKksNJCVRHDNbO9HUQOWRx82ZvUcXZmEeLpYpL44UpCpyNKJhxq8KbC0wSfDZQJyZsb6it4j/YDce17dwhD0TV1CvNrgH/GNwX8ZGN7nG0FusecYmmlVToR3OKFiKzAn8o9aVz1rJZMd86wBRVGToNHcrhlWbw3VtpREfSTBpJMwJapu55nOPBYX9UTS+xDsjqZD7dZtoQfbQWH/OLGCPP/1cQvrptl8ScGSkRe/lTnNwuGJwfkXUtZhaMgkoXyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wdfSGM5SHgu20X8RDxSlYBk7C0CxZUgmgZee4MXquTg=; b=NbreUSkmTxSJYiob/M1/VqKvOdGp6BLIXRf/KjjyBtyc/diHewCQCUqrWaUDw7cDyXP/MlCsmGqqJpHWlBcbyGQ1AGT98ojM/AOux0+TM0kx1hpPdaso5xkRVZoZ6EWZ/xN38pNU54xbZPhvuUtwghDpe/GN/rUCc9zu0X48CEE= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4044.eurprd05.prod.outlook.com (52.134.72.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2327.24; Tue, 8 Oct 2019 09:33:30 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b%5]) with mapi id 15.20.2327.026; Tue, 8 Oct 2019 09:33:30 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad Thread-Topic: [PATCH v2] net/mlx5: adjust inline setting for large Tx queue sizes Thread-Index: AQHVeCUIMPQcP2BrPkSg0ogBXJJbPadQhnvA Date: Tue, 8 Oct 2019 09:33:30 +0000 Message-ID: References: <1569912817-25331-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1569912817-25331-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 02860d59-22f3-4a8d-44f3-08d74bd294ac x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB3PR0502MB4044:|DB3PR0502MB4044: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 01842C458A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(396003)(136003)(376002)(366004)(189003)(199004)(13464003)(7736002)(76176011)(102836004)(6506007)(11346002)(446003)(3846002)(53546011)(66446008)(86362001)(476003)(66946007)(305945005)(66476007)(2906002)(186003)(74316002)(26005)(5660300002)(52536014)(316002)(4326008)(99286004)(76116006)(64756008)(66556008)(7696005)(110136005)(71200400001)(71190400001)(6116002)(25786009)(6246003)(14454004)(486006)(6306002)(66066001)(107886003)(45080400002)(966005)(478600001)(2501003)(256004)(14444005)(81166006)(8936002)(81156014)(8676002)(229853002)(33656002)(55016002)(6436002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4044; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bSoF/Am84CRmv5b4vFFtER54bZ269+mQ+GxAKBlfYXGMKh34JTGqE62nINzCrHToK/XABQDdxb4MgCv72rn9Fc+Gy84OHvpThBTiC3DAdocnhjX54lDS+0OccMrMwuwvDx7P93UVDtdUyaCpYtfaH81cDWGndsem694vUq3cbxbWx3efem3EPQg9MRukAqrIdB2D8YTHaOGkVvykmPSe+aaN1m4AuXKPJfiUoMsQ2difheJSn7cxd4LBpli6I//RE6tLJXfu4NboruTDxr2wC8JWPuNTTIq1RKCI++7ZRZY0DLGAfxfHG5sFBbjFkGK29l2Czq7+vzqgZSQH9WZkjHxA+gpmmknNYKDBKyxaK8kzW/ufmtE2sbGwtZSZt0b2f+NxzhWLHZrBVBJZg23OtiAPsByCx92Xu4kENgV9QDs= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02860d59-22f3-4a8d-44f3-08d74bd294ac X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2019 09:33:30.3888 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aNl7PC1DaG4kQw0WUtZFvxgZgT5RbLuNfDVsj/q0hQ8d0BHvzYyD11WSAnzsuFNXiKCI4okqkL6vin1SOEIetg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4044 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: adjust inline setting for large Tx queue sizes 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" Hi, > -----Original Message----- > From: Viacheslav Ovsiienko > Sent: Tuesday, October 1, 2019 9:54 AM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > > Subject: [PATCH v2] net/mlx5: adjust inline setting for large Tx queue si= zes >=20 > The hardware may have limitations on maximal amount of supported Tx > descriptors building blocks (WQEBB). Application requires the Tx queue mu= st > accept the specified amount of packets. > If inline data feature is engaged the packet may require more WQEBBs and > overall amount of blocks may exceed the hardware capabilities. > Application has to make a trade-off between Tx queue size and maximal dat= a > inline size. >=20 > In case if the inline settings are not requested explicitly with devarg k= eys the > default values are used. This patch adjusts the applied default values if= large > Tx queue size is requested and default inline settings can not be satisfi= ed due > to hardware limitations. >=20 > The explicitly requested inline setting may be aligned (enlarging > only) by configurations routines to provide better WQEBB filling, this im= plicit > alignment is the subject for adjustment either. >=20 > The warning message is emitted to the log if adjustment happens. >=20 > Signed-off-by: Viacheslav Ovsiienko >=20 > --- > v2: - check explicitly specified parameters > - allow adjust aligned parameters > - added extra asserts > v1: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch > es.dpdk.org%2Fpatch%2F59735%2F&data=3D02%7C01%7Crasland%40mell > anox.com%7Ca35d54a2949143d3d89608d7463c25a7%7Ca652971c7d2e4d9ba6 > a4d149256f461b%7C0%7C1%7C637055096469653065&sdata=3D%2FCXfd2V > VjpGntk%2BAynInVj2VQld%2BBC%2BJc66%2Bgu63hso%3D&reserved=3D > 0 >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh