aboutsummaryrefslogtreecommitdiff
path: root/lib/bond.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-05-05 14:27:38 -0700
committerEthan Jackson <ethan@nicira.com>2011-05-06 13:48:41 -0700
commit75135fa0b5dcc4042956a849e667fd71fab5c741 (patch)
tree131d741dda94de00ab24ef57c728f13b3d9c341f /lib/bond.c
parent752f2093e1b1f591744f8084c90eac7073dfdb87 (diff)
bond: Convert stb_id to 32bit parameter.
The 16 bits currently in use is artificially restrictive.
Diffstat (limited to 'lib/bond.c')
-rw-r--r--lib/bond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bond.c b/lib/bond.c
index d7242fae..2b540523 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -74,7 +74,7 @@ struct bond_slave {
uint64_t tx_bytes; /* Sum across 'tx_bytes' of entries. */
/* BM_STABLE specific bonding info. */
- uint16_t stb_id; /* ID used for 'stb_slaves' ordering. */
+ uint32_t stb_id; /* ID used for 'stb_slaves' ordering. */
};
/* A bond, that is, a set of network devices grouped to improve performance or
@@ -351,7 +351,7 @@ bond_reconfigure(struct bond *bond, const struct bond_settings *s)
* 'slave_' or destroying 'bond'.
*/
void
-bond_slave_register(struct bond *bond, void *slave_, uint16_t stb_id,
+bond_slave_register(struct bond *bond, void *slave_, uint32_t stb_id,
struct netdev *netdev)
{
struct bond_slave *slave = bond_slave_lookup(bond, slave_);