mbox series

[0/3] improve MAC swap performance.

Message ID 20181122172632.6229-1-qi.z.zhang@intel.com (mailing list archive)
Headers
Series improve MAC swap performance. |

Message

Qi Zhang Nov. 22, 2018, 5:26 p.m. UTC
  **The pathset is target for 19.02**

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.

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/l2fwd.h          | 40 +++++++++++++++++++
 app/test-pmd/l2fwd_common.h   | 36 +++++++++++++++++
 app/test-pmd/macswap.c        | 36 +++--------------
 app/test-pmd/macswap.h        | 40 +++++++++++++++++++
 app/test-pmd/macswap_common.h | 36 +++++++++++++++++
 app/test-pmd/macswap_sse.h    | 90 +++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 248 insertions(+), 30 deletions(-)
 create mode 100644 app/test-pmd/l2fwd.h
 create mode 100644 app/test-pmd/l2fwd_common.h
 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
  

Comments

Qi Zhang Dec. 11, 2018, 5:55 a.m. UTC | #1
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