From 5c654fcc617a7b42d93a53660ea578b2ab3efa3e Mon Sep 17 00:00:00 2001
From: Lee Duncan <lduncan@suse.com>
Date: Thu, 12 Apr 2018 16:49:00 -0700
Subject: [PATCH 1/1] 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.
---
include/iscsi_if.h | 10 ++++++++++
1 file changed, 10 insertions(+)
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 */
--
2.21.0