From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF416A052A; Tue, 26 Jan 2021 11:34:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 958731413FD; Tue, 26 Jan 2021 11:34:33 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by mails.dpdk.org (Postfix) with ESMTP id 0A7F81413FC for ; Tue, 26 Jan 2021 11:34:31 +0100 (CET) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 26 Jan 2021 02:34:31 -0800 Received: from HQMAIL105.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 26 Jan 2021 02:34:31 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 26 Jan 2021 02:34:31 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 26 Jan 2021 10:34:30 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 26 Jan 2021 10:34:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qy0PooKSgxRGqRtdPZ8KmBgJQygYwKvLdO/R/E55K4paNh7o0LT8xPDuk+8Yw/1cEofKF0zHlaBSLljXwAVEg8tYAWCvR8BPV55FGqju2u8XWm3Y0/YqQrKQncrdzKFiHzL+JMK1jar3/x2SHPhsukdDTlbOHA8g7YszsSalFxR3jByi3eDkYG+hdHQwcH6nOqdkQggCXqfmr3F3LCjaMsKRssWiTEEQ1DhvtNFMwKZ2U0FWi5lEcO627ngf9DBT5c9Nvee/CJAn4yDcMB8qS6ES3rGHuDRAmyI0b2DeRmFxXL7XvYS7GL8x53eYYkXythcTioeI/WPcGeF6yLQXEw== 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=bFe8A/MrFI+9DoUDuDC8LnCrcV6qhoqv6g13N88HbMY=; b=T/I5K4rak24NazYynm/PB9A3seUjp9/5V/1qHPpf1PnWnM9KTIq39tkCY+kIkKiESdFYNWMhA1ARO0MNRFKSaXkb5zI6gW/wax5Nc8UNvtxSILpePRWEnX8rCEcD7quhEf/V6qjYpVVZUi02NeWG7qJsSz/hiC7cg2y/Blz+76rhpfKFNLux2z8NE2CpYospN9l8h8t4gRC2yQ8oF74M6a0kV3gLjpEo4ID1O1lz3Vfv9gIQeAyHePrR7JcjWfWpDneAYYguh4aet+apEwz3fpMbCviSS2xSGkVfXp1NZa+QjN7AzaoUqRQkdoET29Ifqzd4lVx6L6vM6bXEKrNg+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MW2PR12MB2492.namprd12.prod.outlook.com (2603:10b6:907:8::19) by MW3PR12MB4442.namprd12.prod.outlook.com (2603:10b6:303:55::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Tue, 26 Jan 2021 10:34:29 +0000 Received: from MW2PR12MB2492.namprd12.prod.outlook.com ([fe80::680b:7b85:ef35:433b]) by MW2PR12MB2492.namprd12.prod.outlook.com ([fe80::680b:7b85:ef35:433b%6]) with mapi id 15.20.3784.017; Tue, 26 Jan 2021 10:34:29 +0000 From: Matan Azrad To: Slava Ovsiienko , "dev@dpdk.org" CC: Raslan Darawsheh , Ori Kam , NBU-Contact-Thomas Monjalon , Alexander Kozyrev Thread-Topic: [PATCH v3 0/2] add mbuf fast free offload support Thread-Index: AQHW8OHWBSnZ3h/Rl0mq0iXah+SDaao5u5xA Date: Tue, 26 Jan 2021 10:34:29 +0000 Message-ID: References: <1608311697-31529-1-git-send-email-viacheslavo@nvidia.com> <1611335529-26503-1-git-send-email-viacheslavo@nvidia.com> In-Reply-To: <1611335529-26503-1-git-send-email-viacheslavo@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [87.70.44.230] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 20e4a305-3eac-4556-eef8-08d8c1e5f645 x-ms-traffictypediagnostic: MW3PR12MB4442: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 81/WEeNLkYmVrMSHQbkCBoBBpphsGCpGQXGaYdjlBbtaZkrGqcw/pxkPtVnyaE462InvWsZr5bVmoo8s4Pp5QNcLgM5e4GvbDdgcqgwonDusMaTRenoTAeAYqyyLMARDFeWJuP2jbzMG+ekNFieJD3QGulK8F4jxFX9x0s+jYeVjod7f56EpO8OpLTv1zTNkHJtjiMlfaHOPH3HLed84Cr1iBHyZW98QY75hAuaQOfpCFxY2DjCw/AHuuquS2uY4dMwjyFWsfZ1qP1KKs/mq5emsQnr+xkqI9/IvqfdcOIf/lS/dsWAPwY8MH7zAbSqqeR0+TbLZnH7ZM9UKMeXUtdcG+gjO7ZTE8CAgMbY7VQR/RLQUJ2XxrSbDNZJID7WAqI4Oms/SfSXzVUl3iDwjExwvU/pKlZKCFrVUH1BAjHMV/AizIYUZyudxGa8/H5oUeadW7PI3EO07l/9nbjEl0Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR12MB2492.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(366004)(136003)(346002)(376002)(52536014)(966005)(71200400001)(186003)(66946007)(8936002)(64756008)(316002)(66446008)(33656002)(2906002)(26005)(76116006)(478600001)(66556008)(66476007)(6506007)(55016002)(45080400002)(107886003)(83380400001)(9686003)(7696005)(86362001)(8676002)(5660300002)(4326008)(110136005)(54906003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?CP2BELEUrsgHGhqeLWMW7Z5QFHqR3ulNo/+mwx+7Rqt5fFEjNvqq1S7msxj8?= =?us-ascii?Q?/mzAOaTukhyV8XefKV6Ij9Pq3qaZRv5nyTvB6B5B4lmGco939VYBa5uTx2ar?= =?us-ascii?Q?ltW2tJbBFfBp2D/ollAoPcZCIFdulwU9Tzwy7bWXy0UrSTPxoBgLq0JpEYh5?= =?us-ascii?Q?COIpAHde/xRxIF+NN6UxnGtXtvl4hmemIoZKc7p9mr638CDChHKoRZ88rkC7?= =?us-ascii?Q?naBEIp1kG0L7MPXK0q/FS9TSXuu0IgofLqQDJPnUkYm2Lh8TBde3X9MoEbXM?= =?us-ascii?Q?ndofD2ZBJrafbUINt0B5ro9C4TYrdwk8YAuRImagIHw8a+IHiREmXhajEK+V?= =?us-ascii?Q?ZUcP8JhIK3rQlKf66aejTAeI6U51862fXLuQuEG/1hmyaaZlPo0N42TO6Vug?= =?us-ascii?Q?lV3TB3AGD8Xoocyf5xt70yvp79jv2bjWulMSkySAG+we27nVassWx1JT/40o?= =?us-ascii?Q?mslUiB/HUluSC6bQsB2bOBL3Ksl8VAiyb3EXOVR+PLg+woX9dG0EYFRmzpBB?= =?us-ascii?Q?LBakeEWBzcv5KPTZfUL7ocYJE9dZ3Y8FafOwsr2XLumw6nawGKk/SXRGU1W4?= =?us-ascii?Q?1GkbjJEOW8RtoLdHqudvgGeW5RdUigg/ZTJrG9Yjx5LvtOK/IgMf9Jl7Jbiv?= =?us-ascii?Q?CUFjV9KVzlIhzcOfD0uJdeXJQv+4Rscomb7FMTiLbfHQDye2Y7Ry+L36VQUk?= =?us-ascii?Q?cswpRTuG8y/BlX2uKoGtlXddc4yu7GjUkjqIAh9y+MbmGevPvMPyoVGV0Izc?= =?us-ascii?Q?uINkmc3GwvugzXClO6aU8DoGI+qhXTmoIy8zsE5mLOzrcPuME9mSouNxbuyq?= =?us-ascii?Q?zEWiwtcwacQMK2TIZNR06IY3A6UaWqsmkxag4Y/oCapAfUgx0/BPFCU34j0o?= =?us-ascii?Q?KOC2PkmLFg3RdyvxOxdaKQg6JVsfZXy5aQmFgpBXOI4B0usRkwmqihCiE01x?= =?us-ascii?Q?Kt4mhaR+fLcrYZd5KkDTrhHjXsSzwtOQORsaKYe9Fn4RmX+EQfcbfQFA4uGk?= =?us-ascii?Q?tO0GVI0XqDaWS2cmUkGS37AYUH6Mev5hqSPACoANOEj1mw7DOvuSl974Nszu?= =?us-ascii?Q?lDvuHtyS?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB2492.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20e4a305-3eac-4556-eef8-08d8c1e5f645 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2021 10:34:29.3566 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SydWsQDe7dXnILZ3l9AE62uoJgcmlMN4DiV87icCqfOEj/sdzrnwGeaIhmUWcRE6VrE1BdP3Vjuj8RBurBV2yQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4442 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1611657271; bh=bFe8A/MrFI+9DoUDuDC8LnCrcV6qhoqv6g13N88HbMY=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=mPbgAFjaJEg0vqAGcqndd86oqm0Ltvch4ojTRKbUxlDpgrxpPAEtXctaWbiOzFfTW 1g0WeRk3fYVC/hPGP9Fujnng9AUaS6x1ZQiDQIpf7GEHaGcC/Jj8tHnYEs0s6aEIIc wCNQDIltU2TxzTeHxwuujzsEtHkdRqfAC0GwRj0y0m1nev0IGjoE1dHOCx+Aea0bTJ 4KJ4Z6K3pzO9FNRVCbzz7EWiD+PKHPkAD04v08iXsImlTtsgPLQ8Qa5YKVWaLCZzQV F3ZSWQTULdrBTHYLgZrFVhmgkURkwyhMZb5mJ7deqOO3mVe4v8Zvk4eCC7a9+aVLG0 3mrWDKcvLPf8g== Subject: Re: [dpdk-dev] [PATCH v3 0/2] add mbuf fast free offload support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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: Viacheslav Ovsiienko > This patch adds support of the mbuf fast free offload to the transmit dat= apath. > This offload allows to free the mbufs on transmit completion in the most > efficient way. It requires the all mbufs were allocated from the same poo= l, > have the reference counter value as 1, and have no any externally attache= d > buffers. >=20 > The patchset is split in two parts, the first one is overall send loop op= timization > and can be ported back to stable release, and also is the preparation ste= p > before introducing the fast free offload. The second part provides the co= de for > the feature. >=20 > Signed-off-by: Viacheslav Ovsiienko >=20 > --- > v1: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatche= s.d > pdk.org%2Fpatch%2F85482%2F&data=3D04%7C01%7Cmatan%40nvidia.com > %7Cd873758f2c354a1af0aa08d8bef8ddd9%7C43083d15727340c1b7db39efd9c > cc17a%7C0%7C0%7C637469323804842896%7CUnknown%7CTWFpbGZsb3d8eyJ > WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C > 1000&sdata=3DBqgJn08GepCw1gpCfG7rKmqZcp1ht02HG%2Bi%2FlEXKjjc%3 > D&reserved=3D0 > v2: release notes, PMD features and documentation update > v3: typo fixes, documentation update >=20 > Viacheslav Ovsiienko (2): > net/mlx5: optimize inline mbuf freeing > net/mlx5: add mbuf fast free offload support >=20 > doc/guides/nics/features/mlx5.ini | 1 + > doc/guides/nics/mlx5.rst | 12 ++++++ > doc/guides/rel_notes/release_21_02.rst | 2 +- > drivers/net/mlx5/mlx5_rxtx.c | 67 ++++++++++++++++++++++++++++= +--- > -- > drivers/net/mlx5/mlx5_rxtx.h | 2 + > drivers/net/mlx5/mlx5_txq.c | 6 +++ > 6 files changed, 80 insertions(+), 10 deletions(-) >=20 > -- > 1.8.3.1 Series-acked-by: Matan Azrad