aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/bonding.h
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2020-05-09 00:06:35 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2020-05-09 01:05:30 -0700
commit76cd622fe2c2b10c1f0a7311ca797feccacc329d (patch)
tree33c171b70fb514d3596eb0339b0b994283a6c13a /include/net/bonding.h
parentnet: lio_core: remove redundant assignment to variable tx_done (diff)
parentnet/mlx5: Add support to get lag physical port (diff)
downloadwireguard-linux-76cd622fe2c2b10c1f0a7311ca797feccacc329d.tar.xz
wireguard-linux-76cd622fe2c2b10c1f0a7311ca797feccacc329d.zip
Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux
This merge includes updates to bonding driver needed for the rdma stack, to avoid conflicts with the RDMA branch. Maor Gottlieb Says: ==================== Bonding: Add support to get xmit slave The following series adds support to get the LAG master xmit slave by introducing new .ndo - ndo_get_xmit_slave. Every LAG module can implement it and it first implemented in the bond driver. This is follow-up to the RFC discussion [1]. The main motivation for doing this is for drivers that offload part of the LAG functionality. For example, Mellanox Connect-X hardware implements RoCE LAG which selects the TX affinity when the resources are created and port is remapped when it goes down. The first part of this patchset introduces the new .ndo and add the support to the bonding module. The second part adds support to get the RoCE LAG xmit slave by building skb of the RoCE packet based on the AH attributes and call to the new .ndo. The third part change the mlx5 driver driver to set the QP's affinity port according to the slave which found by the .ndo. ==================== Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/net/bonding.h')
-rw-r--r--include/net/bonding.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/bonding.h b/include/net/bonding.h
index 9b1e76515a9c..aa854a9c01e2 100644
--- a/include/net/bonding.h
+++ b/include/net/bonding.h
@@ -200,7 +200,8 @@ struct bonding {
struct slave __rcu *curr_active_slave;
struct slave __rcu *current_arp_slave;
struct slave __rcu *primary_slave;
- struct bond_up_slave __rcu *slave_arr; /* Array of usable slaves */
+ struct bond_up_slave __rcu *usable_slaves;
+ struct bond_up_slave __rcu *all_slaves;
bool force_primary;
s32 slave_cnt; /* never change this value outside the attach/detach wrappers */
int (*recv_probe)(const struct sk_buff *, struct bonding *,