]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/dp_sysfs.h
ofp-util: Make ofputil_encode_set_protocol() able to return failure.
[mirror_ovs.git] / datapath / dp_sysfs.h
CommitLineData
a14bc59f 1/*
e0edde6f 2 * Copyright (c) 2007-2011 Nicira, Inc.
a14bc59f 3 *
a9a29d22
JG
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
a14bc59f
BP
17 */
18
2ba9026e
BP
19#ifndef DP_SYSFS_H
20#define DP_SYSFS_H 1
064af421
BP
21
22struct datapath;
e779d8d9 23struct vport;
064af421 24
2ba9026e 25/* dp_sysfs_dp.c */
850b6b3b
JG
26int ovs_dp_sysfs_add_dp(struct datapath *dp);
27int ovs_dp_sysfs_del_dp(struct datapath *dp);
064af421 28
2ba9026e 29/* dp_sysfs_if.c */
850b6b3b
JG
30int ovs_dp_sysfs_add_if(struct vport *p);
31int ovs_dp_sysfs_del_if(struct vport *p);
064af421 32
8fef8c71 33#ifdef CONFIG_SYSFS
850b6b3b 34extern struct sysfs_ops ovs_brport_sysfs_ops;
58c342f6
BP
35#endif
36
2ba9026e 37#endif /* dp_sysfs.h */
064af421 38