ofproto-dpif-upcall: reduce number of wakeup
authorYAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Wed, 2 Oct 2013 17:49:30 +0000 (10:49 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 2 Oct 2013 18:09:12 +0000 (11:09 -0700)
commit9b32ece62481706b0a340f7a100fe79ad9caad9e
treee0a6c76abcc068068d55c23d6946ece3b2cfc57c
parent9d46457e07cad9cd39b3f0ddb2ca9a50e74361b8
ofproto-dpif-upcall: reduce number of wakeup

If a queue length is long (ie. non-0), the consumer thread should
already be busy working on the queue.  there's no need to wake it
up repeatedly.

Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-upcall.c