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