summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2018-04-12 16:49:00 -0700
committerLee Duncan <lduncan@suse.com>2018-04-12 16:49:00 -0700
commit5c654fcc617a7b42d93a53660ea578b2ab3efa3e (patch)
tree9c905ebc5b53966d6e91d34d3b64c2f7245fb60a /include
parent452bae2a60855fc5bf933b6abf3ad521cef7fc9e (diff)
downloadopen-iscsi-5c654fcc617a7b42d93a53660ea578b2ab3efa3e.tar.gz
Keep iscsi_if in sync with kernel version.
Add in a new enum for iscsi_param and iscsi_err, and add a couple of new (higher) port speeds. Also added a note about having to keep this file in sync with the kernel version.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_if.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/iscsi_if.h b/include/iscsi_if.h
index 5be1981..2d46214 100644
--- a/include/iscsi_if.h
+++ b/include/iscsi_if.h
@@ -30,6 +30,12 @@
#include "iscsi_proto.h"
+/*
+ * NOTE: This file should be kept in sync with the kernel include file
+ * of the same name. In particular, iscsi_param and iscsi_err need
+ * to be in sync.
+ */
+
#define ISCSI_NL_GRP_ISCSID 1
#define ISCSI_NL_GRP_UIP 2
@@ -536,6 +542,7 @@ enum iscsi_err {
ISCSI_ERR_XMIT_FAILED = ISCSI_ERR_BASE + 19,
ISCSI_ERR_TCP_CONN_CLOSE = ISCSI_ERR_BASE + 20,
ISCSI_ERR_SCSI_EH_SESSION_RST = ISCSI_ERR_BASE + 21,
+ ISCSI_ERR_NOP_TIMEDOUT = ISCSI_ERR_BASE + 22,
};
/*
@@ -627,6 +634,7 @@ enum iscsi_param {
ISCSI_PARAM_DISCOVERY_PARENT_IDX,
ISCSI_PARAM_DISCOVERY_PARENT_TYPE,
+ ISCSI_PARAM_LOCAL_IPADDR,
/* must always be last */
ISCSI_PARAM_MAX,
};
@@ -731,6 +739,8 @@ enum iscsi_port_speed {
ISCSI_PORT_SPEED_100MBPS = 0x4,
ISCSI_PORT_SPEED_1GBPS = 0x8,
ISCSI_PORT_SPEED_10GBPS = 0x10,
+ ISCSI_PORT_SPEED_25GBPS = 0x20,
+ ISCSI_PORT_SPEED_40GBPS = 0x40,
};
/* iSCSI port state */