diff options
author | David Decotigny <decot@google.com> | 2011-04-13 11:22:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-15 01:00:32 -0400 |
commit | 5d30530efbb811f875786d788ae1c5d79547c3a4 (patch) | |
tree | ba6c1b23aaf1eb5489ef5e95cc5a45da70bf1321 /drivers/net/bonding/bonding.h | |
parent | 65cce19c07756c2b2b51595c967dda93b0727027 (diff) |
net-bonding: Adding support for throughputs larger than 65536 Mbps
This updates the bonding driver to support v2.6.27-rc3 enhancements
(b11f8d8c aka. "ethtool: Expand ethtool_cmd.speed to 32 bits") which
allow to encode the Mbps link speed on 32-bits (Max 4 Pbps) instead of
16 (Max 65536 Mbps).
This patch also attempts to compact struct slave by reordering its
fields.
Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 3ca503e50718..553c764f7407 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -196,12 +196,12 @@ struct slave { | |||
196 | u8 backup:1, /* indicates backup slave. Value corresponds with | 196 | u8 backup:1, /* indicates backup slave. Value corresponds with |
197 | BOND_STATE_ACTIVE and BOND_STATE_BACKUP */ | 197 | BOND_STATE_ACTIVE and BOND_STATE_BACKUP */ |
198 | inactive:1; /* indicates inactive slave */ | 198 | inactive:1; /* indicates inactive slave */ |
199 | u8 duplex; | ||
199 | u32 original_mtu; | 200 | u32 original_mtu; |
200 | u32 link_failure_count; | 201 | u32 link_failure_count; |
201 | u8 perm_hwaddr[ETH_ALEN]; | 202 | u32 speed; |
202 | u16 speed; | ||
203 | u8 duplex; | ||
204 | u16 queue_id; | 203 | u16 queue_id; |
204 | u8 perm_hwaddr[ETH_ALEN]; | ||
205 | struct ad_slave_info ad_info; /* HUGE - better to dynamically alloc */ | 205 | struct ad_slave_info ad_info; /* HUGE - better to dynamically alloc */ |
206 | struct tlb_slave_info tlb_info; | 206 | struct tlb_slave_info tlb_info; |
207 | #ifdef CONFIG_NET_POLL_CONTROLLER | 207 | #ifdef CONFIG_NET_POLL_CONTROLLER |