bonding: Add array of all slaves
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:38 +0000 (22:21 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 May 2020 19:15:38 +0000 (12:15 -0700)
commit6b447e76ed44cc354cd0a346b86efe393e603e0d
tree1f7c9fdbe528fdcfe3816bb90bd7bce243f43fdc
parent5a19f1c1a2a0f7d5fb80b130ab4a15fa99e792d7
bonding: Add array of all slaves

Keep all slaves in array so it could be used to get the xmit slave
assume all the slaves are active.
The logic to add slave to the array is like the usable slaves, except
that we also add slaves that currently can't transmit - not up or active.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/bonding/bond_main.c
include/net/bonding.h