brcompat: Tolerate a race condition in deleting bridge ports.
authorBen Pfaff <blp@nicira.com>
Mon, 16 Mar 2009 20:14:18 +0000 (13:14 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 16 Mar 2009 20:14:18 +0000 (13:14 -0700)
commitb48ddf0464b8d498567240abac3fd1f457feb86c
tree5971b00e6579c9bddcc0a16055c9c22aaedd46b2
parent425e0c34391afc50f82391f32501fca3acb4d516
brcompat: Tolerate a race condition in deleting bridge ports.

When we delete a bridge port (e.g. "brctl delif"), the port could get
removed from the bridge we are interested in and then quickly added back
into another bridge while sleeping.  Return immediately in this case,
since the port must really have been deleted from the bridge in question.

There is a remaining race that the port could get deleted from the bridge
and then added back to the same one.
datapath/brcompat.c