Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
0002 /*
0003  * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
0004  * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
0005  */
0006 
0007 #ifndef RXE_NET_H
0008 #define RXE_NET_H
0009 
0010 #include <net/sock.h>
0011 #include <net/if_inet6.h>
0012 #include <linux/module.h>
0013 
0014 struct rxe_recv_sockets {
0015     struct socket *sk4;
0016     struct socket *sk6;
0017 };
0018 
0019 int rxe_net_add(const char *ibdev_name, struct net_device *ndev);
0020 
0021 int rxe_net_init(void);
0022 void rxe_net_exit(void);
0023 
0024 #endif /* RXE_NET_H */