]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/dp_sysfs.h
datapath: Add get_vport_protected().
[mirror_ovs.git] / datapath / dp_sysfs.h
CommitLineData
a14bc59f 1/*
f2459fe7 2 * Copyright (c) 2009, 2010 Nicira Networks.
a14bc59f
BP
3 * Distributed under the terms of the GNU GPL version 2.
4 *
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
7 */
8
2ba9026e
BP
9#ifndef DP_SYSFS_H
10#define DP_SYSFS_H 1
064af421
BP
11
12struct datapath;
e779d8d9 13struct vport;
064af421 14
2ba9026e
BP
15/* dp_sysfs_dp.c */
16int dp_sysfs_add_dp(struct datapath *dp);
17int dp_sysfs_del_dp(struct datapath *dp);
064af421 18
2ba9026e 19/* dp_sysfs_if.c */
e779d8d9
BP
20int dp_sysfs_add_if(struct vport *p);
21int dp_sysfs_del_if(struct vport *p);
064af421 22
8fef8c71 23#ifdef CONFIG_SYSFS
58c342f6
BP
24extern struct sysfs_ops brport_sysfs_ops;
25#endif
26
2ba9026e 27#endif /* dp_sysfs.h */
064af421 28