]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Add helper function to get the xmit slave based on hash
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:35 +0000 (22:21 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 May 2020 19:15:37 +0000 (12:15 -0700)
commitd653ce45dcc020611196c03f884cb182d5640ce7
treecd11ee303e9872956396eb24e3cb1884cef85ba8
parent9c670da9fa4f00a5a13083351ae94fe663ea1e5f
bonding: Add helper function to get the xmit slave based on hash

Both xor and 802.3ad modes use bond_xmit_hash to get the xmit slave.
Export the logic to helper function so it could be used in the
following patches by the .ndo to get the xmit slave.

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