]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Add function to get the xmit slave in active-backup mode
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:37 +0000 (22:21 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 May 2020 19:15:38 +0000 (12:15 -0700)
commit57d0fb4695c2fa01920f97736253f915da8fa99a
tree26d93953cdcc93251a24e8b38ab504fd62823fcd
parent045b7f52d2c6d8029f0e1de5f951ee8ee1f039a3
bonding: Add function to get the xmit slave in active-backup mode

Add helper function to get the xmit slave in active-backup mode.
It's only one line function that return the curr_active_slave,
but it will used both in the xmit flow and by the new .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