blob: c5d83a43bfc49bc28e3662623a5a737cce27ab24 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (c) 2007-2011 Nicira, Inc.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#ifndef VPORT_NETDEV_H
7#define VPORT_NETDEV_H 1
8
9#include <linux/netdevice.h>
10#include <linux/rcupdate.h>
11
12#include "vport.h"
13
14struct vport *ovs_netdev_get_vport(struct net_device *dev);
15
16struct vport *ovs_netdev_link(struct vport *vport, const char *name);
17void ovs_netdev_detach_dev(struct vport *);
18
19int __init ovs_netdev_init(void);
20void ovs_netdev_exit(void);
21
22void ovs_netdev_tunnel_destroy(struct vport *vport);
23#endif /* vport_netdev.h */