From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 39F972C16 for ; Tue, 11 Dec 2018 06:53:53 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2018 21:53:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,341,1539673200"; d="scan'208";a="301115113" Received: from dpdk51.sh.intel.com ([10.67.110.190]) by fmsmga006.fm.intel.com with ESMTP; 10 Dec 2018 21:53:50 -0800 From: Qi Zhang To: ferruh.yigit@intel.com, bruce.richardson@intel.com, keith.wiles@intel.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org, wenzhuo.lu@intel.com, bernard.iremonger@intel.com, Qi Zhang Date: Tue, 11 Dec 2018 13:55:08 +0800 Message-Id: <20181211055511.32284-1-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20181122172632.6229-1-qi.z.zhang@intel.com> References: <20181122172632.6229-1-qi.z.zhang@intel.com> Subject: [dpdk-dev] [PATCH v2 0/3] improve MAC swap performance 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: , X-List-Received-Date: Tue, 11 Dec 2018 05:53:53 -0000 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. 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 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 | 83 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 175 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