Merge tag 'v3.10.93' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / openvswitch / vport-netdev.h
CommitLineData
ccb1352e 1/*
caf2ee14 2 * Copyright (c) 2007-2011 Nicira, Inc.
ccb1352e
JG
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>
92eb1d47 23#include <linux/rcupdate.h>
ccb1352e
JG
24
25#include "vport.h"
26
27struct vport *ovs_netdev_get_vport(struct net_device *dev);
28
29struct netdev_vport {
92eb1d47
JG
30 struct rcu_head rcu;
31
ccb1352e
JG
32 struct net_device *dev;
33};
34
35static inline struct netdev_vport *
36netdev_vport_priv(const struct vport *vport)
37{
38 return vport_priv(vport);
39}
40
41const char *ovs_netdev_get_name(const struct vport *);
42const char *ovs_netdev_get_config(const struct vport *);
ccb1352e
JG
43
44#endif /* vport_netdev.h */