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)
committerBen Pfaff <blp@nicira.com>
Wed, 30 Apr 2014 17:59:57 +0000 (10:59 -0700)
commitd476681e590bb9dd87bc8bf9556bc93d9c204b15
treeb1ad7e5dd466490ed92c297d73d439914111bc26
parent9553ce4fa0e3fe4cddbb6926b7faa8298265031d
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