diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2013-11-05 13:51:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-07 21:10:21 +0100 |
commit | 73958329ea1fe0dc149b51e5d8703015f65a03e0 (patch) | |
tree | 149b655cfa917f9239f68dfe0ad3bb55d7ad8a90 /drivers/net/bonding/bonding.h | |
parent | qeth: avoid buffer overflow in snmp ioctl (diff) | |
download | linux-73958329ea1fe0dc149b51e5d8703015f65a03e0.tar.xz linux-73958329ea1fe0dc149b51e5d8703015f65a03e0.zip |
bonding: extend round-robin mode with packets_per_slave
This patch aims to extend round-robin mode with a new option called
packets_per_slave which can have the following values and effects:
0 - choose a random slave
1 (default) - standard round-robin, 1 packet per slave
>1 - round-robin when >1 packets have been transmitted per slave
The allowed values are between 0 and 65535.
This patch also fixes the comment style in bond_xmit_roundrobin().
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Veaceslav Falico <vfalico@redhat.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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 046a60535e04..77a07a12e77f 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h @@ -156,6 +156,7 @@ struct bond_params { int all_slaves_active; int resend_igmp; int lp_interval; + int packets_per_slave; }; struct bond_parm_tbl { @@ -222,7 +223,7 @@ struct bonding { char proc_file_name[IFNAMSIZ]; #endif /* CONFIG_PROC_FS */ struct list_head bond_list; - u16 rr_tx_counter; + u32 rr_tx_counter; struct ad_bond_info ad_info; struct alb_bond_info alb_info; struct bond_params params; |