rxe_net.h (526B)
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 7#ifndef RXE_NET_H 8#define RXE_NET_H 9 10#include <net/sock.h> 11#include <net/if_inet6.h> 12#include <linux/module.h> 13 14struct rxe_recv_sockets { 15 struct socket *sk4; 16 struct socket *sk6; 17}; 18 19int rxe_net_add(const char *ibdev_name, struct net_device *ndev); 20 21int rxe_net_init(void); 22void rxe_net_exit(void); 23 24#endif /* RXE_NET_H */