]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/ofproto-dpif-xlate-cache.h
tunneling: Avoid datapath-recirc by combining recirc actions at xlate.
authorSugesh Chandran <sugesh.chandran@intel.com>
Wed, 19 Jul 2017 13:46:03 +0000 (14:46 +0100)
committerJoe Stringer <joe@ovn.org>
Wed, 19 Jul 2017 21:34:20 +0000 (14:34 -0700)
commit7c12dfc527a5f6e35eb47494d6284d5a7dbc352c
treeb9dc15b3648391792ce45f6e3df5b90aabf9322d
parentce8bbd37ffd41144f13b583726384f0f5e1db849
tunneling: Avoid datapath-recirc by combining recirc actions at xlate.

This patch set removes the recirculation of encapsulated tunnel packets
if possible. It is done by computing the post tunnel actions at the time of
translation. The combined nested action set are programmed in the datapath
using CLONE action.

The following test results shows the performance improvement offered by
this optimization for tunnel encap.

          +-------------+
      dpdk0 |             |
         -->o    br-in    |
            |             o--> gre0
            +-------------+

                   --> LOCAL
            +-----------o-+
            |             | dpdk1
            |    br-p1    o-->
            |             |
            +-------------+

Test result on OVS master with DPDK 16.11.2 (Without optimization):

 # dpdk0

 RX packets         : 7037641.60  / sec
 RX packet errors   : 0  / sec
 RX packets dropped : 7730632.90  / sec
 RX rate            : 402.69 MB/sec

 # dpdk1

 TX packets         : 7037641.60  / sec
 TX packet errors   : 0  / sec
 TX packets dropped : 0  / sec
 TX rate            : 657.73 MB/sec
 TX processing cost per TX packets in nsec : 142.09

Test result on OVS master + DPDK 16.11.2 (With optimization):

 # dpdk0

 RX packets         : 9386809.60  / sec
 RX packet errors   : 0  / sec
 RX packets dropped : 5381496.40  / sec
 RX rate            : 537.11 MB/sec

 # dpdk1

 TX packets         : 9386809.60  / sec
 TX packet errors   : 0  / sec
 TX packets dropped : 0  / sec
 TX rate            : 877.29 MB/sec
 TX processing cost per TX packets in nsec : 106.53

The offered performance gain is approx 30%.

Signed-off-by: Sugesh Chandran <sugesh.chandran@intel.com>
Signed-off-by: Zoltán Balogh <zoltan.balogh@ericsson.com>
Co-authored-by: Zoltán Balogh <zoltan.balogh@ericsson.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
lib/dpif-netdev.c
lib/netdev-native-tnl.c
ofproto/ofproto-dpif-xlate-cache.c
ofproto/ofproto-dpif-xlate-cache.h
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif.c
tests/packet-type-aware.at
tests/system-userspace-packet-type-aware.at