bridge: Eliminate bond_rebalance_port() dependency on DP_MAX_PORTS.
authorBen Pfaff <blp@nicira.com>
Mon, 13 Dec 2010 19:12:37 +0000 (11:12 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 13 Dec 2010 22:26:18 +0000 (14:26 -0800)
commitc47cd5f01377c54251fbf093f8fb390f631a8264
tree68c2e8971eb3fe916b7945aea2dfacd2862c7aa5
parentcdfcd49659a8ec3962a0de82ab306065c547481a
bridge: Eliminate bond_rebalance_port() dependency on DP_MAX_PORTS.

There's no reason to allocate the bals[] array on the stack here, since
this is not on any fast-path.

As an alternative, we could limit the number of interfaces on a single
bond to some reasonable maximum, such as 8 or 32, but this commit's change
is simpler.
vswitchd/bridge.c