From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DD15C76188 for ; Mon, 22 Jul 2019 10:42:33 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 20A90214C6 for ; Mon, 22 Jul 2019 10:42:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="BDOIJnHB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20A90214C6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mellanox.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E76CA1BE8B; Mon, 22 Jul 2019 12:42:31 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80041.outbound.protection.outlook.com [40.107.8.41]) by dpdk.org (Postfix) with ESMTP id B67E01BE8A for ; Mon, 22 Jul 2019 12:42:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n25UGGjldCM2Iv+LYi3pZzk5OY+sa869YKvoPuzsMn2paLC9jtcVRJEsvewiX7voYEb/NmlVhI79FxEcTe3liIk9ZkDMzs4qw8moEaIfZfq5rYnYKmqhf3509QNpjVhdS0ihwpx/Y5gFNjWrroXBeEbHRBYV+ZIFMHZi99Lmjvfx46sQiVMy2TDwVjXk0ZnAW7r4Cl9b2FAb58/laRmiYNayUcP5VpuQ9cjdzHhySgeRD6MRC2j/fjHAkbcRf1sLkZp5HTjtu54JZ4dDRC5vYBYhrzGbdXGtPYirMQirERCKNs6xMemL7ZboVZvaswsEG9Ek3a/Ru/HmBDYGFVPZ0A== 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=taRTA8PVtAr48pUZP0UnSG2VP9c6F4Oqn0l35UggV40=; b=ja9daXQDmkJClE0vvcUdEFJ50Lhqkv5mwhwXO5cc8iAlDjxvUxQFeZbsZ198nOcaW3vzh+A2p7Z4fzUhoi0TBsExo3kZ4ZLzXSrTaIqxypJOpUzxP6rwtzHhsQV4HQ2F9BzyCfRtP7Ad8NKawRULmSJCSSmfnWl54u+IVhGsyY4Wlo6kwY8ZglmVw+HPkgsbVck8tYCbKHJIJ0+zVqiDB8+7EfEVsqDaKej9KctfnQUUfPuPsL83L/9uCYWUmUXwYYxapBw0kbzhoQbg7wwb63IkzP8KLRkbplrp+2NgyMOVyglYChYNqBQpdHflANf8RDH8oSDB9o/8eu+yrSjVCA== 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=taRTA8PVtAr48pUZP0UnSG2VP9c6F4Oqn0l35UggV40=; b=BDOIJnHBy8y+P5WKteEffDZPS8S1fB9V8i428AVbMiOySReX6Ftbc//CkFZU4rZzOGwSfm6T9xqTh20z5bkqfsUmX7oMGylVbPvQB8gdHD4pdgDldw1Pzhj7g1FRG6VJq2LKmubclmPGlJsltc8FiYTavkltt5Inj3eZ99FPd1Y= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4057.eurprd05.prod.outlook.com (52.134.67.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.12; Mon, 22 Jul 2019 10:42:28 +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; Mon, 22 Jul 2019 10:42:28 +0000 From: Raslan Darawsheh To: Matan Azrad , Shahaf Shuler , Yongseok Koh , Slava Ovsiienko CC: "dev@dpdk.org" , Dekel Peled Thread-Topic: [dpdk-dev] [PATCH 00/28] net/mlx5: support LRO Thread-Index: AQHVQG3KQVU+xq9mW06Xbq844BFhTqbWc1dQ Date: Mon, 22 Jul 2019 10:42:28 +0000 Message-ID: References: <1563786795-14027-1-git-send-email-matan@mellanox.com> In-Reply-To: <1563786795-14027-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: e3e71cb2-93e7-4bf8-aa9a-08d70e914ad9 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:DB3PR0502MB4057; x-ms-traffictypediagnostic: DB3PR0502MB4057: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01068D0A20 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(136003)(39860400002)(366004)(376002)(396003)(199004)(189003)(13464003)(25786009)(107886003)(6246003)(478600001)(68736007)(305945005)(7736002)(33656002)(74316002)(14454004)(4326008)(53546011)(6506007)(26005)(186003)(102836004)(256004)(14444005)(486006)(11346002)(446003)(476003)(2906002)(7696005)(76176011)(9686003)(55016002)(66066001)(6436002)(53936002)(3846002)(6116002)(52536014)(76116006)(8936002)(54906003)(110136005)(99286004)(66556008)(66476007)(66946007)(66446008)(8676002)(64756008)(6636002)(86362001)(5660300002)(316002)(71190400001)(71200400001)(229853002)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4057; 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: fZgQbQPt87oDdxWx5lL+ku9axAkkzHXPcMlzizo2nDn/KdAeulwISCjX2CKuwPUEYlnqTVpGHWZr4HcRWV+XL/JmX597AVEl6w3//EgelshWb82i4vu1Ltzzp0yC0DT8niODLp3RYoCPUVlvKMpmi9IzT/wo9XNRkq5A1PhZr+6U8bpaCam9XCpOLMzoMbmlpDPOwgwOZjYM23fuByqM68uHjujIBF2qVhlgSYyAiwcHt0CKIfY88vxCjUozWxRhVvtSdag+HZ7dDniWc1QukCKsC7gz/QA10wcGD6F07Zuc5AUdbR8lza7IYu7u0G+XqyERctYZE7rFRf8QvDo/sk0RvKH3UiX1RFeo/Ox5mhAocbE/UtgfK8IhKCQO8S5PkuhcuRUEsrOu3uz6I012LWvYKdeYG7jdegA7mDfB/p0= 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: e3e71cb2-93e7-4bf8-aa9a-08d70e914ad9 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2019 10:42:28.3820 (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: DB3PR0502MB4057 Subject: Re: [dpdk-dev] [PATCH 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 12:13 PM > To: Shahaf Shuler ; Yongseok Koh > ; Slava Ovsiienko > Cc: dev@dpdk.org; Dekel Peled > Subject: [dpdk-dev] [PATCH 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 > 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 | 1135 ++++++++++++++++++++++----= --- > --- > 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, 2197 insertions(+), 480 deletions(-) >=20 > -- > 1.8.3.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh