Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 1 | /* |
Raju Subramanian | caf2ee1 | 2012-05-03 18:55:23 -0700 | [diff] [blame] | 2 | * Copyright (c) 2007-2011 Nicira, Inc. |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of version 2 of the GNU General Public |
| 6 | * License as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 16 | * 02110-1301, USA |
| 17 | */ |
| 18 | |
| 19 | #ifndef VPORT_NETDEV_H |
| 20 | #define VPORT_NETDEV_H 1 |
| 21 | |
| 22 | #include <linux/netdevice.h> |
Jesse Gross | 92eb1d4 | 2012-11-28 14:01:52 -0800 | [diff] [blame] | 23 | #include <linux/rcupdate.h> |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 24 | |
| 25 | #include "vport.h" |
| 26 | |
| 27 | struct vport *ovs_netdev_get_vport(struct net_device *dev); |
| 28 | |
Thomas Graf | dcc38c0 | 2015-07-29 13:52:06 +0200 | [diff] [blame] | 29 | struct vport *ovs_netdev_link(struct vport *vport, const char *name); |
Pravin B Shelar | 8c87663 | 2015-08-29 17:44:07 -0700 | [diff] [blame] | 30 | void ovs_netdev_send(struct vport *vport, struct sk_buff *skb); |
Alexei Starovoitov | b07c265 | 2013-10-15 14:54:11 -0700 | [diff] [blame] | 31 | void ovs_netdev_detach_dev(struct vport *); |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 32 | |
Thomas Graf | 62b9c8d | 2014-10-22 17:29:06 +0200 | [diff] [blame] | 33 | int __init ovs_netdev_init(void); |
| 34 | void ovs_netdev_exit(void); |
| 35 | |
Pravin B Shelar | a9020fd | 2015-08-07 23:51:33 -0700 | [diff] [blame] | 36 | void ovs_netdev_tunnel_destroy(struct vport *vport); |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 37 | #endif /* vport_netdev.h */ |