rxe_net.h 526 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
  2. /*
  3. * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
  4. * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
  5. */
  6. #ifndef RXE_NET_H
  7. #define RXE_NET_H
  8. #include <net/sock.h>
  9. #include <net/if_inet6.h>
  10. #include <linux/module.h>
  11. struct rxe_recv_sockets {
  12. struct socket *sk4;
  13. struct socket *sk6;
  14. };
  15. int rxe_net_add(const char *ibdev_name, struct net_device *ndev);
  16. int rxe_net_init(void);
  17. void rxe_net_exit(void);
  18. #endif /* RXE_NET_H */