Patchwork [Open-FCoE,2/8] fcoemon: Add defines for fcoe_sysfs based interface

login
register
mail settings
Submitter Robert Love
Date March 5, 2013, 6:29 p.m.
Message ID <20130305182954.21625.40516.stgit@fritz>
Download mbox | patch
Permalink /patch/3/
State Accepted
Headers show

Comments

Robert Love - March 5, 2013, 6:29 p.m.
Re-orgainize some defines a bit to make room for
fcoe_sysfs (/sys/bus/fcoe) based interface file
definitions.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Tested-by: Marcus Dennis <marcusx.e.dennis@intel.com>
---
 include/fcoe_utils.h |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Patch

diff --git a/include/fcoe_utils.h b/include/fcoe_utils.h
index ca3288c..c0797b4 100644
--- a/include/fcoe_utils.h
+++ b/include/fcoe_utils.h
@@ -35,15 +35,21 @@ 
 #define MAX_STR_LEN 512
 #define MAX_PATH_LEN MAX_STR_LEN
 
-#define SYSFS_MOUNT	"/sys"
-#define SYSFS_NET	SYSFS_MOUNT "/class/net"
-#define SYSFS_FCHOST	SYSFS_MOUNT "/class/fc_host"
-#define SYSFS_FCOE	SYSFS_MOUNT "/module/libfcoe/parameters"
+#define SYSFS_MOUNT                            "/sys"
+#define SYSFS_NET               SYSFS_MOUNT    "/class/net"
+#define SYSFS_FCHOST            SYSFS_MOUNT    "/class/fc_host"
+#define SYSFS_FCOE_BUS          SYSFS_MOUNT    "/bus/fcoe"
+#define SYSFS_FCOE_BUS_DEVICES  SYSFS_FCOE_BUS "/devices"
 
-#define FCOE_CREATE	SYSFS_FCOE "/create"
-#define FCOE_DESTROY	SYSFS_FCOE "/destroy"
-#define FCOE_ENABLE 	SYSFS_FCOE "/enable"
-#define FCOE_DISABLE	SYSFS_FCOE "/disable"
+#define SYSFS_FCOE   SYSFS_MOUNT "/module/libfcoe/parameters" /* legacy */
+#define FCOE_CREATE  SYSFS_FCOE  "/create"  /* legacy */
+#define FCOE_DESTROY SYSFS_FCOE  "/destroy" /* legacy */
+#define FCOE_ENABLE  SYSFS_FCOE  "/enable"  /* legacy */
+#define FCOE_DISABLE SYSFS_FCOE  "/disable" /* legacy */
+
+#define FCOE_BUS_CREATE        SYSFS_FCOE_BUS "/ctlr_create"
+#define FCOE_BUS_DESTROY       SYSFS_FCOE_BUS "/ctlr_destroy"
+#define FCOE_CTLR_ATTR_ENABLED "/enabled"
 
 #define FCHOSTBUFLEN 64