blob: c5d83a43bfc49bc28e3662623a5a737cce27ab24 [file] [log] [blame]
Thomas Gleixnerc9422992019-05-29 07:12:43 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Jesse Grossccb13522011-10-25 19:26:31 -07002/*
Raju Subramaniancaf2ee12012-05-03 18:55:23 -07003 * Copyright (c) 2007-2011 Nicira, Inc.
Jesse Grossccb13522011-10-25 19:26:31 -07004 */
5
6#ifndef VPORT_NETDEV_H
7#define VPORT_NETDEV_H 1
8
9#include <linux/netdevice.h>
Jesse Gross92eb1d42012-11-28 14:01:52 -080010#include <linux/rcupdate.h>
Jesse Grossccb13522011-10-25 19:26:31 -070011
12#include "vport.h"
13
14struct vport *ovs_netdev_get_vport(struct net_device *dev);
15
Thomas Grafdcc38c02015-07-29 13:52:06 +020016struct vport *ovs_netdev_link(struct vport *vport, const char *name);
Alexei Starovoitovb07c2652013-10-15 14:54:11 -070017void ovs_netdev_detach_dev(struct vport *);
Jesse Grossccb13522011-10-25 19:26:31 -070018
Thomas Graf62b9c8d2014-10-22 17:29:06 +020019int __init ovs_netdev_init(void);
20void ovs_netdev_exit(void);
21
Pravin B Shelara9020fd2015-08-07 23:51:33 -070022void ovs_netdev_tunnel_destroy(struct vport *vport);
Jesse Grossccb13522011-10-25 19:26:31 -070023#endif /* vport_netdev.h */