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