smc_pnet.h 517 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Shared Memory Communications over RDMA (SMC-R) and RoCE
  4. *
  5. * PNET table queries
  6. *
  7. * Copyright IBM Corp. 2016
  8. *
  9. * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com>
  10. */
  11. #ifndef _SMC_PNET_H
  12. #define _SMC_PNET_H
  13. struct smc_ib_device;
  14. int smc_pnet_init(void) __init;
  15. void smc_pnet_exit(void);
  16. int smc_pnet_remove_by_ibdev(struct smc_ib_device *ibdev);
  17. void smc_pnet_find_roce_resource(struct sock *sk,
  18. struct smc_ib_device **smcibdev, u8 *ibport);
  19. #endif