Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
0002 /*
0003  * Copyright (c) 2020 Mellanox Technologies. All rights reserved.
0004  */
0005 
0006 #ifndef _RDMA_LAG_H_
0007 #define _RDMA_LAG_H_
0008 
0009 #include <net/lag.h>
0010 
0011 struct ib_device;
0012 struct rdma_ah_attr;
0013 
0014 enum rdma_lag_flags {
0015     RDMA_LAG_FLAGS_HASH_ALL_SLAVES = 1 << 0
0016 };
0017 
0018 void rdma_lag_put_ah_roce_slave(struct net_device *xmit_slave);
0019 struct net_device *rdma_lag_get_ah_roce_slave(struct ib_device *device,
0020                           struct rdma_ah_attr *ah_attr,
0021                           gfp_t flags);
0022 
0023 #endif /* _RDMA_LAG_H_ */