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 3FC63A059F; Fri, 10 Apr 2020 16:01:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B4181D167; Fri, 10 Apr 2020 16:01:38 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60083.outbound.protection.outlook.com [40.107.6.83]) by dpdk.org (Postfix) with ESMTP id 271E51D164 for ; Fri, 10 Apr 2020 16:01:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZshqhFo/QfNufG8m/pLq3xhcLoLyo9din1ZYncS7dIxIGW7jXoHkRRfJDJ7sHmkK/Efar6RfuGIXcc3aOPFexOGTmeX3V88QhriVP8qvCNVQ2BIS8fIwWIRFCoeCDa5au3ToaGebcder2a1awTYjgJhb9uzgvZjaimSVHVUcA8a+Mh/VVx6LbZzmWC4yMF/bW5YYf3yh0yJvn8nsRK9TunUpKbGovkdnOPQeWj5oRRTHyFn/9zNSsM7sAylpF6uK6zK85XX4xfYq4aVbzYPvkevV8Y6R+J1pbJFzmkKSSbPkTwGeBxHE2Bi5nZikctxyFf0rAX48joreQgHTJbzU6Q== 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=ba2WFQoE+JNccR1UPSfFF6c3gvGZqGUnNzIUe1gUggg=; b=hTztWhiTeWqfFHePu3Hnm2ffF+yNv2hmwaDLjfRFn9lGhIRJFU2YEVEvlgf26dFS7BbJK7f4ii0MTqT15gismXEGdK4xy8ty4mGL64mda2M+C6nTEi55Wmi15Nde6or8TceeB3T2uxcFln5vo0VkU90lF5kkwfhXq6O3Uhk6lm8QPKYIxgrwXtlCceSWx/6m8S9/Yf7J+kpj+qaCRTfUOkWfQc2owPA9Y3QoCh+J1JLpaqnur0SoQB8IXCff3gGiVz8jPvsWk1beDthRaHVjTeb3mBxHUzL0Qevl9c9Tto37X8bmb1+F8z21j8rgLLhQjIA7JxK2bYUfyaCih1eMbQ== 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=ba2WFQoE+JNccR1UPSfFF6c3gvGZqGUnNzIUe1gUggg=; b=SlbZdqYrh4B00EXEav103J4/ISN+UnQSFSjAnsVkkSMzsSTNZ1oUV2f7iNE1vVE2eGKK56Q57Qk0JNZ12FB3x4ngcRyd5FN5aJ+7aaP/IlFm90z2XqOffqb98g/BFaz5ovhXem0B6PjY1+U6wcGTj7/PjoFQZYTmZoYiVcAIcrc= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (2603:10a6:208:f::11) by AM0PR0502MB3986.eurprd05.prod.outlook.com (2603:10a6:208:b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.23; Fri, 10 Apr 2020 14:01:36 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee%7]) with mapi id 15.20.2878.022; Fri, 10 Apr 2020 14:01:36 +0000 From: Matan Azrad To: Alexander Kozyrev , "dev@dpdk.org" CC: Raslan Darawsheh , Slava Ovsiienko Thread-Topic: [PATCH v4 0/3] net/mlx5: add large packet size support to MPRQ Thread-Index: AQHWDr2pdtFGsp5YNkO5/iLBEqiQvahyY07Q Date: Fri, 10 Apr 2020 14:01:35 +0000 Message-ID: References: <1585851108-485-1-git-send-email-akozyrev@mellanox.com> <1586471033-17130-1-git-send-email-akozyrev@mellanox.com> In-Reply-To: <1586471033-17130-1-git-send-email-akozyrev@mellanox.com> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [77.126.88.104] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4588a09e-fc02-4ffc-9305-08d7dd57aec5 x-ms-traffictypediagnostic: AM0PR0502MB3986:|AM0PR0502MB3986: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1417; x-forefront-prvs: 0369E8196C x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(366004)(396003)(376002)(39860400002)(346002)(8936002)(186003)(478600001)(8676002)(45080400002)(81156014)(316002)(6506007)(54906003)(110136005)(26005)(966005)(71200400001)(7696005)(5660300002)(2906002)(52536014)(107886003)(76116006)(66476007)(64756008)(66446008)(66556008)(9686003)(83080400001)(55016002)(33656002)(86362001)(66946007)(4326008); DIR:OUT; SFP:1101; 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: 311i4RgpkLqE4N1PPVlB8JnNke8ZZMJ5yS1eD/tRgpXG7HG0UicVMmQtXYaDWegKfuFZtv80Qr/loIJCW8mf7HTbNZxLKq53tQqJe9oNLWG/khewxCu0hguyZ5JfEXaL9BB+XVO7/HVex06Q/ZJYFV6/76we+zqnvqRQRVMUDEpCoubNwyktJMRZdxm/94oqCRSrmffZh686aCVvt/JedYrG3Q3MMT71sKHGtg3xFdoqoxjTnsFaAEP17OjslZfv6hq/vBclqV2ieTTShgxoKNEcsidRH+o4jRJg5u4bnTUpqpsrneh9QLfEgfispfVXh1ehjcojhCH90cU0Pf6GBy9u3U3RMhqmYDsa1CHc9hpdFgIPEnNPAtaCH2YQKCFeH8D9S8p+TraAINvl8zCVb4uukkjCjJZ7MEvyB0wai67YL1B75ufnq9X1NqoYIgVZdt02HOfRfycZfGhAYGyjdSulJWyQq7kNmDmac/AKzQyjeP/Tf/xlEVNt5ve1znYpA4F/I/wdjK53370ZyCFUKA== x-ms-exchange-antispam-messagedata: 7AUHqL7QuXE67yqsx6wtR3GqW65jmBfdi95EyxdT/EEUZpmkNGR3LP8OlSW+MYYUgY2WT/UZbvUy61yhurbjSs0NBwJQXgs+tCgNr2T/mSeSawLCne165V2shv3QtoZ3XDAhUekIlyZxrg1f0OZ6YQ== 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: 4588a09e-fc02-4ffc-9305-08d7dd57aec5 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2020 14:01:35.9042 (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: GFyqB5C3M0nV5Vd6Ho6Fkbzc48Ju1GwWS2mkhlR97ui8bZv/l26vcPN1VZe4f0ZFqtt4sL3LLNrLXnLOCPnaTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3986 Subject: Re: [dpdk-dev] [PATCH v4 0/3] net/mlx5: add large packet size support to 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" From: Alexander Kozyrev > In order to support the 9K MTU the MPRQ feature should be updated to > allow a packet to take more than one stride (single linear buffer). > Receiving a packet into multiple adjacent strides should be implemented. > The reason preventing the packet to be received into multiple strides is = that > the data buffer must be preceded with some HEAD_ROOM space. > In the current implementation the HEAD_ROOM space is borrowed by the > PMD from the tail of the preceding stride. If packet takes multiple strid= es the > tail of stride may be overwritten with a packet data and the memory can't= be > borrowed to provide the HEAD_ROOM space for the next packet. > Special care is needed to prevent the HEAD_ROOM corruption as such: > - copy a whole packet into a separate memory buffer if scatter is off > - copy an overlapping data only and craft a multi-segment mbuf otherwise > After multi-stride support for packets receiving is in place it is possib= le to > reduce the stride size for more efficient memory utilization. > Introduce the mprq_log_stride_size device parameter to configure a stride > size for MPRQ. Default stride size is set to 2048 bytes. >=20 > Signed-off-by: Alexander Kozyrev > --- > v1: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatch > work.dpdk.org%2Fcover%2F67558%2F&data=3D02%7C01%7Cmatan%40m > ellanox.com%7Cf120e0911d1b47dde5a208d7dcd4c8eb%7Ca652971c7d2e4d9 > ba6a4d149256f461b%7C0%7C0%7C637220678801839724&sdata=3DLUv0%2 > B6RkXIdDYpp5B7n5ZGo1IaSAKV5saVdMjTldUW4%3D&reserved=3D0 > v2: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatch > work.dpdk.org%2Fcover%2F67670%2F&data=3D02%7C01%7Cmatan%40m > ellanox.com%7Cf120e0911d1b47dde5a208d7dcd4c8eb%7Ca652971c7d2e4d9 > ba6a4d149256f461b%7C0%7C0%7C637220678801839724&sdata=3Dt%2FVy > bs0qmS2NxgEyMsBsD%2BsJebXZ37CQU0opn7Yor%2BI%3D&reserved=3D > 0 > merge documentation and implementation in one commit > v3: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatch > work.dpdk.org%2Fpatch%2F68085%2F&data=3D02%7C01%7Cmatan%40m > ellanox.com%7Cf120e0911d1b47dde5a208d7dcd4c8eb%7Ca652971c7d2e4d9 > ba6a4d149256f461b%7C0%7C0%7C637220678801839724&sdata=3DjXSxCaI > Fr3V0XF7Cb0C6Xje1qwsf4aDlXAwB9BxGfdk%3D&reserved=3D0 > rollback to simple burst Rx in case the packet size is too big to fit int= o the > stride and the stride size is not configured > v4: fix typo in code comments Series-acked-by: Matan Azrad =20 > Alexander Kozyrev (3): > net/mlx5: add a devarg to specify MPRQ stride size > net/mlx5: enable MPRQ multi-stride operations > net/mlx5: add multi-segment packets in MPRQ mode >=20 > doc/guides/nics/mlx5.rst | 17 ++++- > doc/guides/rel_notes/release_20_05.rst | 1 + > drivers/net/mlx5/mlx5.c | 34 ++++++++-- > drivers/net/mlx5/mlx5.h | 1 + > drivers/net/mlx5/mlx5_defs.h | 3 + > drivers/net/mlx5/mlx5_rxq.c | 70 +++++++++++--------- > drivers/net/mlx5/mlx5_rxtx.c | 113 +++++++++++++++++++--------= ----- > - > drivers/net/mlx5/mlx5_rxtx.h | 2 +- > 8 files changed, 154 insertions(+), 87 deletions(-) >=20 > -- > 1.8.3.1