ofproto-dpif-monitor: Run ofproto-dpif-monitor in a thread.
authorAlex Wang <alexw@nicira.com>
Wed, 16 Oct 2013 03:32:30 +0000 (03:32 +0000)
committerEthan Jackson <ethan@nicira.com>
Thu, 17 Oct 2013 01:08:05 +0000 (18:08 -0700)
commite441a806a0387487080ca16176ffdee7a75b3d1e
treef29ca98ff2666db4a8e414a3d8ed82b7fc06976a
parent3688ce7a6ffb80b0f6c489d859bd43ae7503c219
ofproto-dpif-monitor: Run ofproto-dpif-monitor in a thread.

This commit moves the ofproto-dpif-monitor module into a
dedicated thread.  This helps eliminate the burden of main
thread having to wake up very frequently for periodic
interface monitoring (bfd, cfm).  Thusly, this commit greatly
increases the number of bfd/cfm sessions that can be supported
by ovs.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif-monitor.c
ofproto/ofproto-dpif-monitor.h
ofproto/ofproto-dpif.c
tests/ofproto-dpif.at