RDMA/core: Add LAG functionality
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:43 +0000 (22:21 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 2 May 2020 23:19:54 +0000 (20:19 -0300)
commitbd3920eac133103f0d4aa5fc62290e6df9a6c6da
tree38860e6b30e1d75cfe4551d6a193ab975ea5e7ec
parentfa5d010c5630b143b802e0477e87bba0656829cf
RDMA/core: Add LAG functionality

Add support to get the RoCE LAG xmit slave by building skb of the RoCE
packet and call to master_get_xmit_slave.  If driver wants to get the
slave assume all slaves are available, then need to set
RDMA_LAG_FLAGS_HASH_ALL_SLAVES in flags.

Link: https://lore.kernel.org/r/20200430192146.12863-14-maorg@mellanox.com
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/Makefile
drivers/infiniband/core/lag.c [new file with mode: 0644]
include/rdma/ib_verbs.h
include/rdma/lag.h [new file with mode: 0644]