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 86E56A00C4; Wed, 3 Jun 2020 14:33:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 27EBC1D149; Wed, 3 Jun 2020 14:33:36 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60080.outbound.protection.outlook.com [40.107.6.80]) by dpdk.org (Postfix) with ESMTP id 9DE821C43E; Wed, 3 Jun 2020 14:33:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mxkpdgUIlEb8xk+KRufvXb+jbypThT3BJ5XUlD3+WQ5SsJipA43wX32U/6SV0M1FP2qqjKC1X0Cs+83sGqMjvTtpt+SMJFZXxk04xs2TYe0+Twzp8e9ak9xUE+2RY9pf1cKouWN33DxM11RJjk9BNnAKkzSdWH84X6EsSYCHmZjkbcMgsRxHNDSvYz4eQ3HLco/4NtnyHa0bq5ECOA6yK2iStUNR6zrehFe+4A5q8i6VVAYe89kzlSJ6p3XUhuWm4dCZhvfdBBZpfAuV1Cpdum7X8zhMBG+rACa9kQ1FEWvDVlS+4sPvnOlrMzp2a6LJ8RVJ5y++9jhHiIXKP9HPvQ== 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=kVKn6LZhgskWucL3yv5uPPU9t5Rhg9FHq88oDB4RqnU=; b=VRr0Dpr/vzBe/MQ1PCXtAzCzNHMdaOInAM7FDtMx/+9NZVgUVUridZUS5II6U/dRAMMPnpH6VJrYzK1xMaVkSbnDIFMLFzZADD4ds6SwnCtvZ7TYIbhmVIi3nA6SKK1jJr6TPSJBFctjbXecF8T8coRd9YZWMFBXqtAaUnRNAWo7G7jIS0p/qJsKChg/ZP79TEBFEKB3j90wYSGfHXSUcx2hImZ9fNu5NVlw8M5rXEDePa7ZY5dbaCBWf4CGy+Ns5K9fVQCNoSFlL3DcvfOrqFlCPgzLSJubScOBmbqO8802QA3468cfT9jMBWWyP6SQvQ9ZljhjBB6xYbz3+ECw3w== 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=kVKn6LZhgskWucL3yv5uPPU9t5Rhg9FHq88oDB4RqnU=; b=tYUWqFtFUQFGZIXN6SeW8LKP3Gr52vQ242eMoNGic1JAm4n8Y/sXQiaqiFhB0m16fkOgdZMOKU5JclhYCkvjX9uISm9ZfgZfSlDo0AO1EvqG3ZQV6juypSdXxA2VXh3FHKrmAVOC7O7MT1TBiPFxZrlOvles9NOCmHbGNskjGPU= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB5668.eurprd05.prod.outlook.com (2603:10a6:208:120::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Wed, 3 Jun 2020 12:33:33 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e%5]) with mapi id 15.20.3066.018; Wed, 3 Jun 2020 12:33:33 +0000 From: Raslan Darawsheh To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Slava Ovsiienko Thread-Topic: [PATCH] net/mlx5: fix vectorized Rx burst termination Thread-Index: AQHWOJEE13ruMfOutUu/SidypvOO66jG0Ppw Date: Wed, 3 Jun 2020 12:33:33 +0000 Message-ID: References: <1591069841-7846-1-git-send-email-akozyrev@mellanox.com> In-Reply-To: <1591069841-7846-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: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [84.242.49.134] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3494ce0a-a32f-4f4a-08b3-08d807ba544a x-ms-traffictypediagnostic: AM0PR05MB5668: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 04238CD941 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: I1ksCC7VDE8qCtNNt6KBLfGTXHXLFUrMiBRd50LCQga58A30Dd/PehpPDIO5n6lwJQk3IIthsQA4PdPmtLx5HLFYbXV76+ObOD6ZeF0v+z9AAHGU60BX80oH06f4LyeFawEj3Valc8GSgtkGkzBo9TWLaj0QUWuO9LYJGesrLkIe+Rqe9AtCohWmmR43DP6V5dgXtXn7qlJb9YNOW4gQflfJoRAzk4ISiX5Q+BbVumcexD/KX7goFSLOa7RTDl7gmnr0n6wkRr/oGtYWPOUKqAyRDZMEqsalo6iGYBhc2GXnDUiiLmmsFRrbiretJx7MBEkfWtQThHwwdG2S3r59LQ== 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:(4636009)(346002)(376002)(39860400002)(396003)(366004)(136003)(5660300002)(4326008)(76116006)(86362001)(2906002)(55016002)(66476007)(83380400001)(66946007)(66556008)(9686003)(66446008)(8676002)(52536014)(64756008)(478600001)(6506007)(8936002)(450100002)(26005)(53546011)(186003)(7696005)(316002)(71200400001)(107886003)(54906003)(33656002)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: yM8rv4LCKBlIfOrmMyFVdp1xP5e1U+G3uzsXRwCY6L1Y9aCid8qryUNoi50nXFPdSjLVnLW6oPTURyJcyWzO7aV+D6PgXAP+zEgy29AEOtaTsuRFJfQej38lTD/DrRwCBsimXILxZQVoVLHHWWy1wRteaiUuSwh8firu3qU/pTXBPTBKe4T9Hh8/hjFIpAc8duMUZ58yl34G+HqU/DDztvUrCDGS4uVkzxHoQiCvhI7yXrUosqBbHtc4sa27xzpPHz67bLJv1VPgrwsbcxLHVP3/VpR/rPRknGh+g/ao/er7wjCayBDRWo1pT9uvst6r3VYG17YSNSpMkH9a7fwMJW6q3Z9orpk4y5iupYBv1ISb+tEJNrdp+HrtI2eJFCd7VbHFJhkgSwiMMls7KPD51vkk2TEVnGnuxAOSAi0NB0CpWR6aypTfROUK0U7G8ahFhDQ01t/oUK2ICCpiszWuJCqHD/NIAgjwkY5QTM6JLZI= 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: 3494ce0a-a32f-4f4a-08b3-08d807ba544a X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2020 12:33:33.1548 (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: lyRwmcg93zLt7OUHiP7UZ3m102D3K0JIr23oIjOSUbaL5CmOMT7KIF+KsLYbgLNIMB8ogv+67VTlzynzSCrksQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5668 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix vectorized Rx burst termination 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: Tuesday, June 2, 2020 6:51 AM > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko > Subject: [PATCH] net/mlx5: fix vectorized Rx burst termination >=20 > Maximum burst size of Vectorized Rx burst routine is set to > MLX5_VPMD_RX_MAX_BURST(64). This limits the performance of any > application that would like to gather more than 64 packets from > the single Rx burst for batch processing (i.e. VPP). >=20 > The situation gets worse with a mix of zipped and unzipped CQEs. > They are processed separately and the Rx burst function returns > small number of packets every call. >=20 > Repeat the cycle of gathering packets from the vectorized Rx routine > until a requested number of packets are collected or there are no > more CQEs left to process. >=20 > Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alexander Kozyrev > Acked-by: Slava Ovsiienko > --- > drivers/net/mlx5/mlx5_rxtx_vec.c | 19 +++++++++++++------ > drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 13 ++++++++++--- > drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 13 ++++++++++--- > drivers/net/mlx5/mlx5_rxtx_vec_sse.h | 13 ++++++++++--- > 4 files changed, 43 insertions(+), 15 deletions(-) >=20 Patch applied to next-net-mlx, Kindest regards Raslan Darawsheh