From 75135fa0b5dcc4042956a849e667fd71fab5c741 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 5 May 2011 14:27:38 -0700 Subject: [PATCH] bond: Convert stb_id to 32bit parameter. The 16 bits currently in use is artificially restrictive. --- lib/bond.c | 4 ++-- lib/bond.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bond.c b/lib/bond.c index d7242fae2..2b540523e 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_); diff --git a/lib/bond.h b/lib/bond.h index 5847abc10..c2efb8b02 100644 --- a/lib/bond.h +++ b/lib/bond.h @@ -75,7 +75,7 @@ void bond_destroy(struct bond *); bool bond_reconfigure(struct bond *, const struct bond_settings *); void bond_slave_register(struct bond *, void *slave_, - uint16_t stable_id, struct netdev *); + uint32_t stable_id, struct netdev *); void bond_slave_unregister(struct bond *, const void *slave); void bond_run(struct bond *, struct tag_set *, bool lacp_negotiated); -- 2.43.0