[ovs-git] [openvswitch/ovs] f82b3b: ofproto-dpif-upcall: Only call ovsrcu_postpone() o...

GitHub noreply at github.com
Thu Apr 19 16:30:25 UTC 2018

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: f82b3b6a2f4d024ce671b1e3b11aa92d29f2564d
  Author: Eelco Chaudron <echaudro at redhat.com>
  Date:   2018-04-19 (Thu, 19 Apr 2018)

  Changed paths:
    M ofproto/ofproto-dpif-upcall.c

  Log Message:
  ofproto-dpif-upcall: Only call ovsrcu_postpone() on active actions

Currently, ovsrcu_postpone() is called even with a NULL argument,
i.e. when there is no data to be freed. This is causing additional
overhead because work is scheduled for the urcu thread. This change
avoids adding the postpone callback if no work needs to be done.

This especially helps for the OVS-DPDK case where the PMD threads
might no longer have to do a write() due to the latch_set(), and thus
saving a syscall.

Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list