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 52DB9A051C; Tue, 11 Feb 2020 09:33:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 02A6949E0; Tue, 11 Feb 2020 09:33:07 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80054.outbound.protection.outlook.com [40.107.8.54]) by dpdk.org (Postfix) with ESMTP id C471D2BF4; Tue, 11 Feb 2020 09:33:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OXwbkboEobDix0YWDwAfEl+gccy8clem07e5EsvDnMvlis5SSonrgxA3SrbqeaHnuOu6mV0iUhgXYWPoQY+Im3WzYyld7pXKm9DH/EnNHLMg4Ex6iElz54I0SH4RgcTNpNQw5c6lr2kfMbSNxqC6ycZ9fu/LoI6WIFmKGetfNByGiJ2gnAhDRZxAg6c70L/GPYcgNpB7l2NJcfOsrOXLiv0cxIgVlx72V2PwWjNV5G5QkDCPVr1okSKdVoMNrD2rzK98nTIejWJ0WPSLtZT+IDumOJ2GA1tc9M56MaJ28zUsTtdA6GGVy+3A3UK3+UMN3tep+s3iMYqg42KC+Oz6Zw== 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=aCevKz+HRRfYrAhkayXecywqLdZORchTFnDUrHFslgY=; b=jh8ixl3V/1X6kxZJ4T3rtLYw64FUUb6NQx/YXtQuPqe0XXRzeyKgfSP/Lz9Wh7bnbFPn6CN2fWnkjTbj+sYiW8Ittx1yFGXNU3T8WESYJN433HonjvN+3OeUbl4sddeP7cvCwFUC/nbLkLhQcyJ/C7l+dxBD8xeT7CzuWhczZjrizvMXYpb0osbtBttMvJT7fIn3PoS6+6q6HuVCR4gLCfrB8DtURAbtZf9RZj2JAEfd0lUrXeR1dvEPWgNjymY5gt5pvm6m273+WfJ7yyfWmlhAQmvlxQ8FEynFqrHvI/hktfZCwODjYgfXdpivGDreaKJntq7nGQ39mwFb9qCZyA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aCevKz+HRRfYrAhkayXecywqLdZORchTFnDUrHFslgY=; b=K/yyYC8fdpsO1Tiao6ltrhjBG5Nmojj0catMETeTj59y9RafxWyMsjk07P+qgwB8JThtDeAKGtzzsrtEuQBth9shGnjh/uswvgTGmBv7SFZxdMf7+e4w2qms7kvgDSqFpczPF3BjqXvU10FU9l0kafobSUemNzsrRQ5aqoL2cZo= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB4529.eurprd05.prod.outlook.com (52.133.52.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.29; Tue, 11 Feb 2020 08:33:04 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::adbd:45ca:54:bba9]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::adbd:45ca:54:bba9%7]) with mapi id 15.20.2707.030; Tue, 11 Feb 2020 08:33:04 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , Ori Kam , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix the legacy multi packet write session Thread-Index: AQHV3524DJlxFLDvskGzEPnWHTD53KgVq/ag Date: Tue, 11 Feb 2020 08:33:04 +0000 Message-ID: References: <1581288893-1878-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1581288893-1878-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-ht: Tenant x-ms-office365-filtering-correlation-id: 78fb2296-684f-4eaf-09ba-08d7aecd0368 x-ms-traffictypediagnostic: AM0PR05MB4529:|AM0PR05MB4529: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:923; x-forefront-prvs: 0310C78181 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(396003)(136003)(346002)(366004)(39860400002)(189003)(199004)(71200400001)(26005)(4326008)(76116006)(54906003)(7696005)(81156014)(8936002)(2906002)(66476007)(64756008)(66446008)(66946007)(66556008)(186003)(316002)(55016002)(5660300002)(110136005)(86362001)(450100002)(81166006)(9686003)(6506007)(33656002)(53546011)(8676002)(52536014)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4529; H:AM0PR05MB6707.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: K8TxJArGKoQmNt2WKlObNE7HTkq5O7pk/N7Nfm+HF+MPHwm5pjKjNdA4KQEprp+fgv1RW4KH3oCmlU6CH5FUidtx+N5NuicgtsbZffiA46vhkZJUcr9koNNzthZQC27DTZ++As9t4thnZhjSRcuMTMgm2untb+0buNGCCdmRxGaOB0qh1mdehU4JNh5d/BzDFuWI7SA6grN6t9vnLqExuEytJvVwgnN9LVKTPls/+bw1cxK4eyseNWMK5MPc2C0qG3IIKgBlC76rJm+DkuRD6orv+LU0NdUotMIRMA7SMiNS1RIjYBPZUe5nSXvXlQN/tvUBSxeJagS8RJaTgrCkJgj9K3WuMtXFhKQr+Sn6Z25248xLby0wHe0NsfecPBD+thNhGhJ4Ds8ZWbBG+6IWvSHVX+0s/mPWN/Es6Xj3YEjD0UnQ0VsCh/ApOqBVn5Mi x-ms-exchange-antispam-messagedata: m2LhXmzPxh9x1dVI9wQf3foWzxujjf7rYcrLu44KFcQQCsYDr81yFFsdi+wT3IiQw+6fOeBGgJOyUfcTIXNFmXZaGOae0hQ4yBnaf4JN44kmiKvVi9KXIksXdYvuQfivlUCKEgMSfbGRz9NrKL4sCQ== 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: 78fb2296-684f-4eaf-09ba-08d7aecd0368 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Feb 2020 08:33:04.3409 (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: 0w084eRHktWk+2/TdTkIxbhQKxbmOIdF78JbfWnzUgc1Q1Q2T4JY+BU9pG+4m5wtxM8fAc92CoxDG9GHOmVR8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4529 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix the legacy multi packet write session 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: Monday, February 10, 2020 12:55 AM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Ori Kam ; > stable@dpdk.org > Subject: [PATCH] net/mlx5: fix the legacy multi packet write session >=20 > To provide the better PCIe bandwidth utilization the ConnectX-4LX > NIC supports the multi-packet write (MPW) sessions allowing to > pack multiple packets into one descriptor (WQE). This is legacy > feature and it has some limitations on the packets and data > description segments. To provide the best performance all inline > packets must be put into shared data segment and the total length > of MPW session must be limited. The limit is controlled with > txq_inline_mpw devarg. >=20 > Fixes: 82e75f8323bf ("net/mlx5: fix legacy multi-packet Tx descriptors") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko > --- > drivers/common/mlx5/mlx5_prm.h | 2 +- > drivers/net/mlx5/mlx5_rxtx.c | 90 > ++++++++++++++++++++++++++++++++++++------ > 2 files changed, 80 insertions(+), 12 deletions(-) >=20 > diff --git a/drivers/common/mlx5/mlx5_prm.h > b/drivers/common/mlx5/mlx5_prm.h > index 855b37a..4ac3d4b 100644 > --- a/drivers/common/mlx5/mlx5_prm.h > +++ b/drivers/common/mlx5/mlx5_prm.h > @@ -100,7 +100,7 @@ > */ Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh