]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7403129fd4a8ec82df66efd2b3523cf9a41d199
tree1f7c9fdbe528fdcfe3816bb90bd7bce243f43fdc
parent2d0c85243fbf5abf6409f295923efb5f22e47192
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