bonding: Implement ndo_get_xmit_slave
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:39 +0000 (22:21 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 May 2020 19:15:38 +0000 (12:15 -0700)
commit33720aaf8c2af5c0ff341a16b5048b9c7ecae569
tree280ed7cef2a96d6ea7bc1aca0f90ca2bff894a2f
parent6b447e76ed44cc354cd0a346b86efe393e603e0d
bonding: Implement ndo_get_xmit_slave

Add implementation of ndo_get_xmit_slave. Find the slave by using the
helper function according to the bond mode. If the caller set all_slaves
to true, then it assumes that all slaves are available to transmit.

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