mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
After the previous commit, which changed the datapath to always create and attach a vport at the same time, and to always detach and delete a vport at the same time, there is no longer any real distinction between a dp_port and a vport. This commit, therefore, merges the two together to simplify code. It might even improve performance, although I have not checked. I wasn't sure at first whether the merged structure should be "struct dp_port" or "struct vport". I went with the latter since the "v" prefix sounds cool. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
29 lines
599 B
C
29 lines
599 B
C
/*
|
|
* Copyright (c) 2009, 2010 Nicira Networks.
|
|
* Distributed under the terms of the GNU GPL version 2.
|
|
*
|
|
* Significant portions of this file may be copied from parts of the Linux
|
|
* kernel, by Linus Torvalds and others.
|
|
*/
|
|
|
|
#ifndef DP_SYSFS_H
|
|
#define DP_SYSFS_H 1
|
|
|
|
struct datapath;
|
|
struct vport;
|
|
|
|
/* dp_sysfs_dp.c */
|
|
int dp_sysfs_add_dp(struct datapath *dp);
|
|
int dp_sysfs_del_dp(struct datapath *dp);
|
|
|
|
/* dp_sysfs_if.c */
|
|
int dp_sysfs_add_if(struct vport *p);
|
|
int dp_sysfs_del_if(struct vport *p);
|
|
|
|
#ifdef CONFIG_SYSFS
|
|
extern struct sysfs_ops brport_sysfs_ops;
|
|
#endif
|
|
|
|
#endif /* dp_sysfs.h */
|
|
|