Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
fcoe-utils
0014-fcoemon-Use-internal-sysfs_hba-library.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0014-fcoemon-Use-internal-sysfs_hba-library.patch of Package fcoe-utils
From 3422ff9cbc68fb74a09b1bf259b0901caa44ae87 Mon Sep 17 00:00:00 2001 Message-Id: <3422ff9cbc68fb74a09b1bf259b0901caa44ae87.1439372158.git.jthumshirn@suse.de> In-Reply-To: <cover.1439372158.git.jthumshirn@suse.de> References: <cover.1439372158.git.jthumshirn@suse.de> From: Johannes Thumshirn <jthumshirn@suse.de> Date: Thu, 6 Aug 2015 11:38:16 +0200 Subject: [PATCH 6/9] fcoemon: Use internal sysfs_hba library Use internal sysfs_hba library for fcoemon as well. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> --- fcoemon.c | 2 +- include/sysfs_hba.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fcoemon.c b/fcoemon.c index c0af99b..91d12c7 100644 --- a/fcoemon.c +++ b/fcoemon.c @@ -60,7 +60,7 @@ #include "fcoemon.h" #include "fcoe_clif.h" #include "fcoe_utils.h" -#include "hbaapi.h" +#include "sysfs_hba.h" #include "strarr.h" #include "fip.h" diff --git a/include/sysfs_hba.h b/include/sysfs_hba.h index 32657e7..170935c 100644 --- a/include/sysfs_hba.h +++ b/include/sysfs_hba.h @@ -44,6 +44,14 @@ #define HBA_PORTSPEED_40GBIT 0x0100 /* 40 GBit/sec */ #define HBA_PORTSPEED_NOT_NEGOTIATED (1 << 15) /* Speed not established */ +/* Event Codes */ +#define HBA_EVENT_LIP_OCCURRED 1 +#define HBA_EVENT_LINK_UP 2 +#define HBA_EVENT_LINK_DOWN 3 +#define HBA_EVENT_LIP_RESET_OCCURRED 4 +#define HBA_EVENT_RSCN 5 +#define HBA_EVENT_PROPRIETARY 0xFFFF + struct port_attributes { char device_name[256]; char symbolic_name[256]; -- 2.4.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor