netdev-dummy: Make netdev_rx_wait() wakeups work cross-thread for dummies.
authorBen Pfaff <blp@nicira.com>
Thu, 26 Dec 2013 06:27:25 +0000 (22:27 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Jan 2014 01:10:31 +0000 (17:10 -0800)
commit98045eda19a14799848a2faec5e9968d2ae5cd1b
tree09a0cf42624e1bff22e56c0d5c9d17246a005170
parenta4bc946ca1543266b53c96ba7b0324bbe8d19e2e
netdev-dummy: Make netdev_rx_wait() wakeups work cross-thread for dummies.

Until now, netdev_dummy_rx_wait() has only checked whether the receive
queue for the dummy device is currently empty.  This has worked OK because
in practice packets were queued to dummy devices only from the same thread
that attempted to receive them.  An upcoming commit will use different
threads for these purposes, so this commit switches to a notification
method that works cross-thread.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/netdev-dummy.c