Blame SOURCES/0001-Keep-iscsi_if-in-sync-with-kernel-version.patch

3d2430
From 5c654fcc617a7b42d93a53660ea578b2ab3efa3e Mon Sep 17 00:00:00 2001
3d2430
From: Lee Duncan <lduncan@suse.com>
3d2430
Date: Thu, 12 Apr 2018 16:49:00 -0700
3d2430
Subject: [PATCH 1/1] Keep iscsi_if in sync with kernel version.
3d2430
3d2430
Add in a new enum for iscsi_param and iscsi_err,
3d2430
and add a couple of new (higher) port speeds.
3d2430
3d2430
Also added a note about having to keep this
3d2430
file in sync with the kernel version.
3d2430
---
3d2430
 include/iscsi_if.h | 10 ++++++++++
3d2430
 1 file changed, 10 insertions(+)
3d2430
3d2430
diff --git a/include/iscsi_if.h b/include/iscsi_if.h
3d2430
index 5be1981..2d46214 100644
3d2430
--- a/include/iscsi_if.h
3d2430
+++ b/include/iscsi_if.h
3d2430
@@ -30,6 +30,12 @@
3d2430
 
3d2430
 #include "iscsi_proto.h"
3d2430
 
3d2430
+/*
3d2430
+ * NOTE: This file should be kept in sync with the kernel include file
3d2430
+ * of the same name. In particular, iscsi_param and iscsi_err need
3d2430
+ * to be in sync.
3d2430
+ */
3d2430
+
3d2430
 #define ISCSI_NL_GRP_ISCSID	1
3d2430
 #define ISCSI_NL_GRP_UIP	2
3d2430
 
3d2430
@@ -536,6 +542,7 @@ enum iscsi_err {
3d2430
 	ISCSI_ERR_XMIT_FAILED		= ISCSI_ERR_BASE + 19,
3d2430
 	ISCSI_ERR_TCP_CONN_CLOSE	= ISCSI_ERR_BASE + 20,
3d2430
 	ISCSI_ERR_SCSI_EH_SESSION_RST	= ISCSI_ERR_BASE + 21,
3d2430
+	ISCSI_ERR_NOP_TIMEDOUT		= ISCSI_ERR_BASE + 22,
3d2430
 };
3d2430
 
3d2430
 /*
3d2430
@@ -627,6 +634,7 @@ enum iscsi_param {
3d2430
 
3d2430
 	ISCSI_PARAM_DISCOVERY_PARENT_IDX,
3d2430
 	ISCSI_PARAM_DISCOVERY_PARENT_TYPE,
3d2430
+	ISCSI_PARAM_LOCAL_IPADDR,
3d2430
 	/* must always be last */
3d2430
 	ISCSI_PARAM_MAX,
3d2430
 };
3d2430
@@ -731,6 +739,8 @@ enum iscsi_port_speed {
3d2430
 	ISCSI_PORT_SPEED_100MBPS	= 0x4,
3d2430
 	ISCSI_PORT_SPEED_1GBPS		= 0x8,
3d2430
 	ISCSI_PORT_SPEED_10GBPS		= 0x10,
3d2430
+	ISCSI_PORT_SPEED_25GBPS         = 0x20,
3d2430
+	ISCSI_PORT_SPEED_40GBPS         = 0x40,
3d2430
 };
3d2430
 
3d2430
 /* iSCSI port state */
3d2430
-- 
3d2430
2.21.0
3d2430