From mboxrd@z Thu Jan 1 00:00:00 1970 From: Qi Zhang Subject: [PATCH v3 0/3] improve MAC swap performance Date: Sun, 16 Dec 2018 08:58:32 +0800 Message-ID: <20181216005835.23679-1-qi.z.zhang@intel.com> References: <20181122172632.6229-1-qi.z.zhang@intel.com> Cc: dev@dpdk.org, wenzhuo.lu@intel.com, bernard.iremonger@intel.com, Qi Zhang To: ferruh.yigit@intel.com, bruce.richardson@intel.com, keith.wiles@intel.com, konstantin.ananyev@intel.com Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 80D4C1B929 for ; Sun, 16 Dec 2018 01:57:17 +0100 (CET) In-Reply-To: <20181122172632.6229-1-qi.z.zhang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Improved testpmd macswap performance for x86 by take advantage of SSE instructions. On a broadwell 1.6GHz sever with a i40e 25G NIC. We abserve 17.7% performance improvement for testpmd's macswap test. v3: - fix wrong comment after #endif. - fix EOF space line. - add comment to explain shuffle mask. v2: - replace PKT_TX_VLAN_PKT/PKT_TX_QINQ_PKT with PKT_TX_VLAN/PKT_TX_QINQ - only set vlan / outer_vlan when related ol_flags is set. - fix coding style *** BLURB HERE *** Qi Zhang (3): app/testpmd: code refactory for macswap app/testpmd: improve MAC swap performance for x86 app/testpmd: further improve MAC swap performance for x86 app/test-pmd/macswap.c | 36 +++--------------- app/test-pmd/macswap.h | 40 ++++++++++++++++++++ app/test-pmd/macswap_common.h | 46 +++++++++++++++++++++++ app/test-pmd/macswap_sse.h | 87 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 179 insertions(+), 30 deletions(-) create mode 100644 app/test-pmd/macswap.h create mode 100644 app/test-pmd/macswap_common.h create mode 100644 app/test-pmd/macswap_sse.h -- 2.13.6