ofproto-dpif: Use sequence number to wake up main thread for
authorAlex Wang <alexw@nicira.com>
Thu, 17 Apr 2014 19:24:45 +0000 (12:24 -0700)
committerAlex Wang <alexw@nicira.com>
Mon, 28 Apr 2014 04:21:42 +0000 (21:21 -0700)
commitcfc50ae514f805dcd9c14589f21158185424daf6
tree7fcd518b88e7e1790c54cec988ce860481bf3840
parent1335a8d578b03e276294b32df9702c2562705f22
ofproto-dpif: Use sequence number to wake up main thread for
packet-in I/O.

This commit adds per 'struct ofproto_dpif' sequence number for
packet-in I/O.  Whenever ofproto_dpif_send_packet_in() is called,
the calling thread will change the sequence number to wake up the
main thread.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
ofproto/ofproto-dpif.c