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 952A3A046B for ; Tue, 23 Jul 2019 08:48:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA3D91BF85; Tue, 23 Jul 2019 08:48:55 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10055.outbound.protection.outlook.com [40.107.1.55]) by dpdk.org (Postfix) with ESMTP id 6DA421BF43 for ; Tue, 23 Jul 2019 08:48:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mPyWHCy7lGF2pv94Fwe11zfNTRV3ZkKKyK0FfJRB/FSoIIF+sSLr90mxsRPBORiRuZ82s5s6uZKzrTeS4FW1jydqYbxuAW0iwdtL2HzcDZgiOG+nQhgkyEdccym99WYRct/3RClIfmVvJk4dJGhPU3PCfW7z6+mg3nOi0H7kaGWSirb2fI16Z+pFY2amjWbYUfwfJ9hqi/NZSWmH+N+kKyVWe5OS3UJOYDfZB1HckL58LykjPJrvejX3XvuevPrbaWbt8QCa1hdSqnNlwZ6Hr/4f8LQe3fWOTdiBKy7wyYug7nAqoJMd4fcVJmj7ux8vQijrV+JP0pHq32n/Y+9mEw== 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=zIb7Z3p0/yT1xJdUkVoznFAqS8raQWPBUWCORQ+fXJ8=; b=A1gcDSc7P2uWhBzlm+EwYkSB5u3ZWPfQcvcJoD3eLVybBRB6uWY/S2LGDjbHjW931Cw6iq7at0IhtWpy478FwffWD3dWFqdO+yb08p4LCUHzR9GEbmttXbUuVqOQM9W4hKgLxKW548b+ouxFCRkD8US+ZkUBmKqLCvaP0BfVsbaNEG6DU872MgaoYUrwD75SdSHOvm0aeU4LTGH+Pv9GXa880sgsl7uG+c0Puls+h9X2R39dysecNgz/W1u7qFewfWZxv2Va7ssAaHJPHXSaXn0EGah1gA93Dm0Vtie4SNgUsEAIQEhnJPPxlWJ7NVkA8f9y3KuxCWgd4l3QWE/dlg== 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=zIb7Z3p0/yT1xJdUkVoznFAqS8raQWPBUWCORQ+fXJ8=; b=Oa/vmFDIxghRWnlYbjvTVx24V0YikVFNS88xt31BY5Pn1WdkkDgmC7jquV1CpVD1pOCkFaGcPgCYCeJhNUmgbep+2LdzQlsXq/piko9ZrYGoi+aRdGIMr0yxog2N9a9eBBIcqIYxDOTx9D18XtVGjxRrsNjd0yLinH4ZMu23yf4= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4043.eurprd05.prod.outlook.com (52.134.68.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.14; Tue, 23 Jul 2019 06:48:52 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::bcc1:5331:1dca:7360]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::bcc1:5331:1dca:7360%7]) with mapi id 15.20.2094.013; Tue, 23 Jul 2019 06:48:52 +0000 From: Raslan Darawsheh To: Matan Azrad , Ferruh Yigit , Shahaf Shuler , Yongseok Koh , Slava Ovsiienko CC: "dev@dpdk.org" , Dekel Peled Thread-Topic: [dpdk-dev] [PATCH v2 00/28] net/mlx5: support LRO Thread-Index: AQHVQJ2Bfz1kc5yrc0OZ+xxu1W+hN6bXw77g Date: Tue, 23 Jul 2019 06:48:52 +0000 Message-ID: References: <1563786795-14027-1-git-send-email-matan@mellanox.com> <1563807145-16577-1-git-send-email-matan@mellanox.com> In-Reply-To: <1563807145-16577-1-git-send-email-matan@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: fa0d54ca-fe53-46ac-05ad-08d70f39d30e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:DB3PR0502MB4043; x-ms-traffictypediagnostic: DB3PR0502MB4043: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:989; x-forefront-prvs: 0107098B6C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(346002)(376002)(136003)(39860400002)(199004)(13464003)(189003)(33656002)(6436002)(107886003)(66066001)(476003)(11346002)(55016002)(9686003)(2906002)(6246003)(5660300002)(7736002)(305945005)(99286004)(4326008)(71190400001)(53936002)(86362001)(26005)(6636002)(25786009)(76176011)(446003)(110136005)(14444005)(53546011)(6506007)(8676002)(6116002)(3846002)(68736007)(8936002)(54906003)(102836004)(229853002)(316002)(7696005)(76116006)(64756008)(478600001)(66446008)(486006)(186003)(66946007)(66476007)(14454004)(66556008)(81156014)(81166006)(74316002)(71200400001)(52536014)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4043; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Un01S5l/kQ3a9hd1qYH6Ik6AVkUrc0LHA2jT5Hjshcsqi7pkQczbiGKb++oHPbBfb9ewuocCIc3pxNrBJLo3mpu0eO/I5DqH3pfibc06ZEl/78/xaEYow//gcNfroegDvYPq0FNGcQ7e+XnSJdQl/eiCdMr0PZ+84uql41/EXY7kBWG+aK4AXug6yR7NRDfrTx7nZ7odSr7BnOik6L1WNa4RyIzZl9EbXfqkaqiwSW1adnqic6B/4EnAzq9wKLN6WAVCDMVcDFtHe85hrA+I01MZrMuhB250bjy1GCpEABRw6BUTnLi0CvF3Q2/4WYz3GFo3nhXS05RbngaGAwVgNHOA9kEpWcmIl5MxdhlqP8VVLD9gGOoLmVkUUNGRD39P8bYv8M5+ImZLP2Us+98XCkwT9oF/15U2YGsBUIBRkkQ= 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: fa0d54ca-fe53-46ac-05ad-08d70f39d30e X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2019 06:48:52.2669 (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: rasland@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4043 Subject: Re: [dpdk-dev] [PATCH v2 00/28] net/mlx5: support LRO 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: dev On Behalf Of Matan Azrad > Sent: Monday, July 22, 2019 5:52 PM > To: Ferruh Yigit ; Shahaf Shuler > ; Yongseok Koh ; Slava > Ovsiienko > Cc: dev@dpdk.org; Dekel Peled > Subject: [dpdk-dev] [PATCH v2 00/28] net/mlx5: support LRO >=20 > Introduction: > LRO (Large Receive Offload) is intended to reduce host CPU overhead when > processing Rx TCP packets. > LRO works by aggregating multiple incoming packets from a single stream > into a larger buffer, before they are passed higher up the networking sta= ck. > Thus reducing the number of packets that have to be processed. >=20 > Use: > MLX5 PMD will query the HCA capabilities on initialization to check if LR= O is > supported and can be used. > LRO in MLX5 PMD is intended for use by applications using a relatively sm= all > number of flows. > LRO support can be enabled only per port. > In each LRO session, packets of the same flow will be coalesced until one= of > the following occur: > * Buffer size limit is exceeded. > * Session timeout is exceeded. > * Packet from a different flow is received on the same queue. >=20 > When LRO session ends the coalesced packet is passed to the PMD, which > will update the header fields before passing the packet to the applicatio= n. > For efficient memory utilization, the MPRQ mechanism is used. > Support of Non-LRO flows will not be impacted. >=20 > Existing API: > Offload capability DEV_RX_OFFLOAD_TCP_LRO will be used to indicate > device supports LRO. > testpmd command-line option "-enable-lro" will be used to request LRO > feature enable on application start. > testpmd rx_offload "tcp_lro" on or off will be used to request LRO featur= e > enable or disable during application runtime. > Offload flag PKT_RX_LRO will be used. This flag can be set in Rx mbuf to > indicate this is a LRO coalesced packet. >=20 > New API: > PMD configuration parameter lro_timeout_usec will be added. > This parameter can be used by application to select LRO session timeout (= in > microseconds). > If this value is not specified, the minimal value supported by device wil= l be > used. >=20 > Known limitations: > mbuf head-room is zero for any packet if LRO is configured in the port. > Keep CRC offload cannot be supported with LRO. > CQE compression is not supported with LRO. >=20 > v2: > Fix small compilation issue detected per commit (Found By Ferruh). >=20 > Dekel Peled (23): > net/mlx5: remove redundant item from union > net/mlx5: add LRO APIs and initial settings > net/mlx5: support LRO caps query using devx API > net/mlx5: glue func for queue query using new API > net/mlx5: glue function for action using new API > net/mlx5: check conditions to enable LRO > net/mlx5: support Tx interface query using new API > net/mlx5: update Tx queue create for LRO > net/mlx5: create advanced RxQ object using new API > net/mlx5: modify advanced RxQ object using new API > net/mlx5: create advanced Rx object using new API > net/mlx5: create advanced RxQ table using new API > net/mlx5: allocate door-bells using new API > net/mlx5: rename RxQ verbs to general RxQ object > net/mlx5: rename verbs indirection table to obj > net/mlx5: rename hash RxQ verbs to general > net/mlx5: update queue state modify function > net/mlx5: store protection domain number on create > net/mlx5: func to create Rx verbs completion queue > net/mlx5: function to create Rx verbs work queue > net/mlx5: create advanced RxQ using new API > net/mlx5: support LRO with single RxQ object > doc: update MLX5 doc and release notes with LRO >=20 > Matan Azrad (5): > net/mlx5: replace the external mbuf shared memory > net/mlx5: update LRO fields in completion entry > net/mlx5: handle LRO packets in Rx queue > net/mlx5: zero the LRO mbuf headroom > net/mlx5: adjust the maximum LRO message size >=20 > doc/guides/nics/features/mlx5.ini | 1 + > doc/guides/nics/mlx5.rst | 14 + > doc/guides/rel_notes/release_19_08.rst | 2 +- > drivers/net/mlx5/Makefile | 5 + > drivers/net/mlx5/meson.build | 2 + > drivers/net/mlx5/mlx5.c | 223 ++++++- > drivers/net/mlx5/mlx5.h | 160 ++++- > drivers/net/mlx5/mlx5_devx_cmds.c | 326 +++++++++ > drivers/net/mlx5/mlx5_ethdev.c | 14 +- > drivers/net/mlx5/mlx5_flow.h | 6 + > drivers/net/mlx5/mlx5_flow_dv.c | 28 +- > drivers/net/mlx5/mlx5_flow_verbs.c | 3 +- > drivers/net/mlx5/mlx5_glue.c | 33 + > drivers/net/mlx5/mlx5_glue.h | 6 +- > drivers/net/mlx5/mlx5_prm.h | 379 ++++++++++- > drivers/net/mlx5/mlx5_rxq.c | 1132 ++++++++++++++++++++++----= --- > --- > drivers/net/mlx5/mlx5_rxtx.c | 167 ++++- > drivers/net/mlx5/mlx5_rxtx.h | 80 ++- > drivers/net/mlx5/mlx5_rxtx_vec.h | 6 +- > drivers/net/mlx5/mlx5_rxtx_vec_sse.h | 16 +- > drivers/net/mlx5/mlx5_trigger.c | 12 +- > drivers/net/mlx5/mlx5_txq.c | 27 +- > drivers/net/mlx5/mlx5_vlan.c | 32 +- > 23 files changed, 2194 insertions(+), 480 deletions(-) >=20 > -- > 1.8.3.1 Series applied to next-net-mlx, Kindest regards Raslan Darawsheh