1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * Copyright (c) 2007-2011 Nicira, Inc. 2 * Copyright (c) 2007-2011 Nicira, Inc. >> 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 4 */ 17 */ 5 18 6 #ifndef VPORT_NETDEV_H 19 #ifndef VPORT_NETDEV_H 7 #define VPORT_NETDEV_H 1 20 #define VPORT_NETDEV_H 1 8 21 9 #include <linux/netdevice.h> 22 #include <linux/netdevice.h> 10 #include <linux/rcupdate.h> 23 #include <linux/rcupdate.h> 11 24 12 #include "vport.h" 25 #include "vport.h" 13 26 14 struct vport *ovs_netdev_get_vport(struct net_ 27 struct vport *ovs_netdev_get_vport(struct net_device *dev); 15 28 16 struct vport *ovs_netdev_link(struct vport *vp !! 29 struct netdev_vport { 17 void ovs_netdev_detach_dev(struct vport *); !! 30 struct rcu_head rcu; 18 31 19 int __init ovs_netdev_init(void); !! 32 struct net_device *dev; 20 void ovs_netdev_exit(void); !! 33 }; >> 34 >> 35 static inline struct netdev_vport * >> 36 netdev_vport_priv(const struct vport *vport) >> 37 { >> 38 return vport_priv(vport); >> 39 } >> 40 >> 41 const char *ovs_netdev_get_name(const struct vport *); >> 42 const char *ovs_netdev_get_config(const struct vport *); 21 43 22 void ovs_netdev_tunnel_destroy(struct vport *v << 23 #endif /* vport_netdev.h */ 44 #endif /* vport_netdev.h */ 24 45
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.