lag.h 530 B

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