blob: 19e29c12adcc562ed82b27563a46608ad1b95f33 [file] [log] [blame]
Jesse Grossccb13522011-10-25 19:26:31 -07001/*
Raju Subramaniancaf2ee12012-05-03 18:55:23 -07002 * Copyright (c) 2007-2011 Nicira, Inc.
Jesse Grossccb13522011-10-25 19:26:31 -07003 *
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 Gross92eb1d42012-11-28 14:01:52 -080023#include <linux/rcupdate.h>
Jesse Grossccb13522011-10-25 19:26:31 -070024
25#include "vport.h"
26
27struct vport *ovs_netdev_get_vport(struct net_device *dev);
28
Thomas Grafdcc38c02015-07-29 13:52:06 +020029struct vport *ovs_netdev_link(struct vport *vport, const char *name);
Alexei Starovoitovb07c2652013-10-15 14:54:11 -070030void ovs_netdev_detach_dev(struct vport *);
Jesse Grossccb13522011-10-25 19:26:31 -070031
Thomas Graf62b9c8d2014-10-22 17:29:06 +020032int __init ovs_netdev_init(void);
33void ovs_netdev_exit(void);
34
Pravin B Shelara9020fd2015-08-07 23:51:33 -070035void ovs_netdev_tunnel_destroy(struct vport *vport);
Jesse Grossccb13522011-10-25 19:26:31 -070036#endif /* vport_netdev.h */