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 BF62FA0577; Mon, 13 Apr 2020 12:57:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F8052B84; Mon, 13 Apr 2020 12:57:20 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150043.outbound.protection.outlook.com [40.107.15.43]) by dpdk.org (Postfix) with ESMTP id DC6D91B53 for ; Mon, 13 Apr 2020 12:57:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GMDfSXHb3dv0ruj8hFIZ3dw9i3r55H2VloAYWeGhnVk7vndW/S8FDi8Q9g3uW5XBkv37ZHcSbQWy9xKOrga/1idQc/wdtZLC6se0VAkrUnh4rkOn+jji4PLcIl8npZms4NX299H34aaq/SkY1nsJ+0LlO7eJRrNGDk3KeO7UBmcPe/M3pzEdXSDQWGaQlTV1blKfKgx6qGJCMxEjgO4DLNcUNDP5PenUXXFBW38imgZguWU4mQVVDqGscXY7D705FOiKwklKvIXbhiVdhGIe3AVQ0+MdtEV751Os+/ntht9h8BMSwN3k7F0G7A/tamc6JnOBxNsOpZLeEvRPvXRvsQ== 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=wpWCoqUZwPiB6bFn5Wpq8Cvg6Onivv9Tclp8UqfdIhk=; b=nYG71Sl+4aeN55FRNsBwT1W+lK69oNhj6/MAfBKfjQm7bVipvHz99My8IUPozNyOBoXtBIjnZE38tb/VPJeN2N5Wb28KATGF/dMRp428DX/8jlafvUjuxAAiobBuaJnoG52FTTXFa0S8UHMsKEEaWFKOBdFBwt3Eeo6/Iypjgajz/2hUghltTEIdgzuHGZpUdsWj6pmStsvcl+h7XyIrIh5wc5BaDL0tx10mpqZsusCyiNxONofpz9x8SNqjsu4psNizzVnF7Cx2Fa50csLXVA0lJ11fLj95F1AS26pvhZ+REL+DLJKP46Yth+OYWMZjyTYKJ00RdMa465H3E67SBg== 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=wpWCoqUZwPiB6bFn5Wpq8Cvg6Onivv9Tclp8UqfdIhk=; b=d913n1rs2fu8GtmnbFPFNspvhQjHyAbfiH6GSfPuF3a8+M3Q81nNXz2mY/MiedQo9tGj2f163QRnt3j51Qcp4rvj2nb0FXHiWu1htpXyuQCztBcUWI/YDB3eZ+jWVz5NyK16YzSlOjF5tw2jeaWt8/hc5fKI7F0iAr1pHFbjUeU= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB5715.eurprd05.prod.outlook.com (2603:10a6:208:11e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15; Mon, 13 Apr 2020 10:57:16 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e%6]) with mapi id 15.20.2900.028; Mon, 13 Apr 2020 10:57:16 +0000 From: Raslan Darawsheh To: Alexander Kozyrev , "dev@dpdk.org" CC: Matan Azrad , Slava Ovsiienko Thread-Topic: [PATCH v4 0/3] net/mlx5: add large packet size support to MPRQ Thread-Index: AQHWDr2pPKyjjEYAXkOp/xwhO0NgTKh25wQg Date: Mon, 13 Apr 2020 10:57:16 +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 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: [188.161.230.106] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 6392c80d-be1f-45a7-9646-08d7df996e4a x-ms-traffictypediagnostic: AM0PR05MB5715:|AM0PR05MB5715: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:494; x-forefront-prvs: 037291602B x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(346002)(39860400002)(366004)(376002)(136003)(396003)(83080400001)(81156014)(8676002)(6506007)(8936002)(86362001)(33656002)(54906003)(186003)(52536014)(110136005)(5660300002)(7696005)(53546011)(76116006)(66946007)(71200400001)(66476007)(66556008)(64756008)(66446008)(316002)(4326008)(9686003)(55016002)(478600001)(107886003)(45080400002)(26005)(2906002)(966005); 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: u6yNpf+BnzkkJ+5tKFGg0ep9Cwl12nsA1DxB0o2PU2Kkm0H+lAVvilGmxy0FqaJGZwEXMfUGY0B/AOW5yxaNJIrg22eB++Rx38PB8c7Plhm6UMYRxKMprHJCe3zHLe6ZPuIQjD8APK7z4HjNKEqxhp1EgwjDY/XWnwoz+fnZMFbzZrkRJOQQ9ECLmJ3Syu5Ftn+BL3pvrdxe33MLPw+2+/vi4y7DBSBiX0F2oddaZZyX1IMj/gbv2GJbFrgkYDOYrf2m7riC6yfLAFt5UWKt1pigxpJbeDOg9YMzt2nlXtWgqztLxWiPQkUewq4CIwFq3VISWrs7p+ak1LlEvxpKopOCFVu/yglzdh5abGsGrNNLCVtTu4RtiVoOLGaCsq/iXtEjCQH33PIELcVVkNO3tiwY+/X77Qg+lrVwQ2+qAInGAeCJs9zGON2+5uQaj0mjMkci9ntXUBQ8cLPjzaXzkspWCAJTGNodkBKPJOZuXp4PFdUaHh7eIffqkhXXTBD+TJZnID761Kqjg8wReHTNoA== x-ms-exchange-antispam-messagedata: F5dGRzSRuWuABd0partW5o+aWTwZmJLvnCuTAXkGH2FzJeQJNR9N0pObbT5msfSRQcQClxBxpG5oAdGr0M3uGMoMo/i/WPEBpw+sUtaKrlj/CSWicAb9yWDaQ617XBkpHz6emMvxA2mlW7y4/MbXwA== 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: 6392c80d-be1f-45a7-9646-08d7df996e4a X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2020 10:57:16.8212 (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: p100+qgm/JecYM44tqZ/yA/re+Gi7M3rHp0nGFt+7BTf7P/ZnX8FPMmAd5OmP0f2hjtp+iIaZFhkvOHDMpOkEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5715 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" Hi, > -----Original Message----- > From: Alexander Kozyrev > Sent: Friday, April 10, 2020 1:24 AM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Slava Ovsiienko > Subject: [PATCH v4 0/3] net/mlx5: add large packet size support to MPRQ >=20 > 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 strides > 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 > possible 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%7Crasland%40 > mellanox.com%7Cb4e88289699c4d57cba508d7dcd4caf2%7Ca652971c7d2e4d9 > ba6a4d149256f461b%7C0%7C0%7C637220678808646094&sdata=3D3aiMgH > dWFEaCMh6Vw%2B3lzU9wr9C8FkZcpQN5jq1%2BWGg%3D&reserved=3D0 > v2: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatch > work.dpdk.org%2Fcover%2F67670%2F&data=3D02%7C01%7Crasland%40 > mellanox.com%7Cb4e88289699c4d57cba508d7dcd4caf2%7Ca652971c7d2e4d9 > ba6a4d149256f461b%7C0%7C0%7C637220678808646094&sdata=3Drw%2FR > FqaQAY9gnScLNMTc%2Fg2NqKT6yuHal%2FP7vLdTf%2BY%3D&reserved > =3D0 > 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%7Crasland%40 > mellanox.com%7Cb4e88289699c4d57cba508d7dcd4caf2%7Ca652971c7d2e4d9 > ba6a4d149256f461b%7C0%7C0%7C637220678808646094&sdata=3DasYoyH > y7r0hkU7Vgw%2Fjo1Zp%2B0UKZv%2BRB7iinXg%2B6mMw%3D&reserv > ed=3D0 > rollback to simple burst Rx in case the packet size is too big > to fit into the stride and the stride size is not configured > v4: fix typo in code comments >=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 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh