ofproto-bond: do not allow recirculation when we failed to allocate recirc_id
authorAndy Zhou <azhou@nicira.com>
Fri, 25 Apr 2014 02:21:40 +0000 (19:21 -0700)
committerAndy Zhou <azhou@nicira.com>
Tue, 29 Apr 2014 00:37:05 +0000 (17:37 -0700)
commit9e4e33db91d28bf570a05db32db46a1952f91684
tree5ff2520d770cd6d6d0bfae0010a05c832e3bf5f4
parentf053752fc64abedd834fbbc40fcab60b7c0a7e8f
ofproto-bond: do not allow recirculation when we failed to allocate recirc_id

When recirc pool is exhausted, a new bond won't be allocate a new
recirc_id. The bond->recirc_id will remain zero. This condition
should prevent the bond from use recirculation. This check was missing
before this patch.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/bond.c