]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
bonding/alb: Add helper functions to get the xmit slave
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:34 +0000 (22:21 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 May 2020 19:15:37 +0000 (12:15 -0700)
commit34b37e204dfc8b20a09bb7b7f4c5e970c87420dd
treef3a74d62991724dc903c460fa4c714a1c75d89ad
parented7d4f023b1a9b0578f20d66557c66452ab845ec
bonding/alb: Add helper functions to get the xmit slave

Add two helper functions to get the xmit slave of bond in alb or tlb
mode. Extract the logic of find the xmit slave from the xmit flow
to function. Xmit flow will xmit through this slave and in the
following patches the new .ndo will call to the helper function
to return 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_alb.c
include/net/bond_alb.h