Thomas Gleixner | c942299 | 2019-05-29 07:12:43 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 2 | /* |
Raju Subramanian | caf2ee1 | 2012-05-03 18:55:23 -0700 | [diff] [blame] | 3 | * Copyright (c) 2007-2011 Nicira, Inc. |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef VPORT_NETDEV_H |
| 7 | #define VPORT_NETDEV_H 1 |
| 8 | |
| 9 | #include <linux/netdevice.h> |
Jesse Gross | 92eb1d4 | 2012-11-28 14:01:52 -0800 | [diff] [blame] | 10 | #include <linux/rcupdate.h> |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 11 | |
| 12 | #include "vport.h" |
| 13 | |
| 14 | struct vport *ovs_netdev_get_vport(struct net_device *dev); |
| 15 | |
Thomas Graf | dcc38c0 | 2015-07-29 13:52:06 +0200 | [diff] [blame] | 16 | struct vport *ovs_netdev_link(struct vport *vport, const char *name); |
Alexei Starovoitov | b07c265 | 2013-10-15 14:54:11 -0700 | [diff] [blame] | 17 | void ovs_netdev_detach_dev(struct vport *); |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 18 | |
Thomas Graf | 62b9c8d | 2014-10-22 17:29:06 +0200 | [diff] [blame] | 19 | int __init ovs_netdev_init(void); |
| 20 | void ovs_netdev_exit(void); |
| 21 | |
Pravin B Shelar | a9020fd | 2015-08-07 23:51:33 -0700 | [diff] [blame] | 22 | void ovs_netdev_tunnel_destroy(struct vport *vport); |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 23 | #endif /* vport_netdev.h */ |