xref: /openbmc/linux/include/rdma/lag.h (revision bd3920ea)
1bd3920eaSMaor Gottlieb /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2bd3920eaSMaor Gottlieb /*
3bd3920eaSMaor Gottlieb  * Copyright (c) 2020 Mellanox Technologies. All rights reserved.
4bd3920eaSMaor Gottlieb  */
5bd3920eaSMaor Gottlieb 
6bd3920eaSMaor Gottlieb #ifndef _RDMA_LAG_H_
7bd3920eaSMaor Gottlieb #define _RDMA_LAG_H_
8bd3920eaSMaor Gottlieb 
9bd3920eaSMaor Gottlieb #include <net/lag.h>
10bd3920eaSMaor Gottlieb 
11bd3920eaSMaor Gottlieb struct ib_device;
12bd3920eaSMaor Gottlieb struct rdma_ah_attr;
13bd3920eaSMaor Gottlieb 
14bd3920eaSMaor Gottlieb enum rdma_lag_flags {
15bd3920eaSMaor Gottlieb 	RDMA_LAG_FLAGS_HASH_ALL_SLAVES = 1 << 0
16bd3920eaSMaor Gottlieb };
17bd3920eaSMaor Gottlieb 
18bd3920eaSMaor Gottlieb void rdma_lag_put_ah_roce_slave(struct net_device *xmit_slave);
19bd3920eaSMaor Gottlieb struct net_device *rdma_lag_get_ah_roce_slave(struct ib_device *device,
20bd3920eaSMaor Gottlieb 					      struct rdma_ah_attr *ah_attr,
21bd3920eaSMaor Gottlieb 					      gfp_t flags);
22bd3920eaSMaor Gottlieb 
23bd3920eaSMaor Gottlieb #endif /* _RDMA_LAG_H_ */
24