From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH v3 0/7] Performance optimizations for mlx5 and mlx4 Date: Thu, 3 Mar 2016 15:27:10 +0100 Message-ID: <1457015237-2993-1-git-send-email-adrien.mazarguil@6wind.com> References: <1456165083-28316-1-git-send-email-adrien.mazarguil@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 726FC2BAA for ; Thu, 3 Mar 2016 15:27:34 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id l68so133729742wml.0 for ; Thu, 03 Mar 2016 06:27:34 -0800 (PST) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id i2sm40908409wje.22.2016.03.03.06.27.33 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2016 06:27:33 -0800 (PST) In-Reply-To: <1456165083-28316-1-git-send-email-adrien.mazarguil@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patchset improves the mlx5 PMD performance by doing better prefetching, by reordering internal structure fields and by removing a few unnecessary operations. Note: should be applied after "Add flow director and RX VLAN stripping support" to avoid conflicts. Changes in v3: - None, submitted again due to dependency with previous patchset. Changes in v2: - Rebased patchset on top of dpdk-next-net/rel_16_04. - Fixed missing update for receive function in rxq_rehash(). - Added a commit to register memory on page boundaries instead of mempool object boundaries for better performance (mlx4 and mlx5). Adrien Mazarguil (1): mlx: use aligned memory to register regions Nelio Laranjeiro (6): mlx5: prefetch next TX mbuf header and data mlx5: reorder TX/RX queue structure mlx5: remove one indirection level from RX/TX functions mlx5: process offload flags only when requested mlx5: avoid lkey retrieval for inlined packets mlx5: free buffers immediately after completion drivers/net/mlx4/mlx4.c | 58 ++++++++++--- drivers/net/mlx5/Makefile | 1 + drivers/net/mlx5/mlx5_rxq.c | 22 +++-- drivers/net/mlx5/mlx5_rxtx.c | 189 +++++++++++++++++++++++++++---------------- drivers/net/mlx5/mlx5_rxtx.h | 55 ++++++++----- drivers/net/mlx5/mlx5_txq.c | 14 ++++ 6 files changed, 236 insertions(+), 103 deletions(-) -- 2.1.4