[ovs-git] [openvswitch/ovs] 78d9bb: ofproto-dpif-upcall: Make handler always call poll...

GitHub noreply at github.com
Tue Jan 6 18:47:16 UTC 2015


  Branch: refs/heads/branch-2.3
  Home:   https://github.com/openvswitch/ovs
  Commit: 78d9bbb45efc7227b2efd4a94394ee574742c1ca
      https://github.com/openvswitch/ovs/commit/78d9bbb45efc7227b2efd4a94394ee574742c1ca
  Author: Alex Wang <alexw at nicira.com>
  Date:   2015-01-06 (Tue, 06 Jan 2015)

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

  Log Message:
  -----------
  ofproto-dpif-upcall: Make handler always call poll_block.

This commit makes handler threads always call poll_block() at
the end of each handling cycle.  If there are upcalls received
in the current cycle, the handler will register to wake up
immediately.  Otherwise, it will wait on both the netlink
socket and the exit latch.

Calling poll_block() at every handling cycle makes sure that
coverage counter stats are always timely attributed, and that
the execution of ovsrcu-postponed events is not held by any
busy handler thread.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>




More information about the git mailing list