This series adds support for a P4 based miniflow hash calculation.
This patch depends on the "Introducing support for P4 in OVS" patch
(https://mail.openvswitch.org/pipermail/ovs-dev/2016-October/324008.html)
which applies cleanly on the 'b753ccd' commit on master.

In a simple Phy-Phy performance test, a ~6% gain in performance was
found when comparing the performance on the 'b753ccd' commit of
master.
Performance test details:
 - 64B Ether/IP/UDP packets
 - 1 flow (EMC always hit)
 - Miniflow hash calculation in software
 - Modified version of simple_router.p4 input file used
   - UDP protocol definition added
   - Standard 5tuple 'ovs_hash_field' field list given

Cian Ferriter (2):
  hash: Add P4 based miniflow hash calculation
  dp-packet: Move OVS_HDR_ATTRS in dp_packet struct

 include/p4/automake.mk             |    1 +
 include/p4/plugin/ovs/lib/hash.c.h |   55 ++++++++++++++++++++++++++++++++++++
 lib/dp-packet.h                    |    6 ++--
 lib/dpif-netdev.c                  |    2 +-
 lib/flow.c                         |   44 ++++------------------------
 lib/flow.h                         |    8 ++++-
 lib/hash.c                         |   16 ++++++++++
 lib/hash.h                         |    1 +
 8 files changed, 90 insertions(+), 43 deletions(-)
 create mode 100644 include/p4/plugin/ovs/lib/hash.c.h

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to