summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_iscsi.h
diff options
context:
space:
mode:
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>2016-08-19 11:50:08 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2016-08-24 04:42:43 +0200
commit290aa376a6669d4cec22d9db5695f0036e218132 (patch)
treee15cb3d477d40a9c527b3e74ff5623d4cfdd54e0 /drivers/scsi/be2iscsi/be_iscsi.h
parentscsi: be2iscsi: Handle only NET_PARAM in iface_get_param (diff)
downloadlinux-290aa376a6669d4cec22d9db5695f0036e218132.tar.xz
linux-290aa376a6669d4cec22d9db5695f0036e218132.zip
scsi: be2iscsi: Check all zeroes IP before issuing IOCTL
Redefine FW IP types. Before issuing IOCTL to clear IP, check if IP is all zeroes. All zeroes IP implies IP is not set in FW so FW fails that IOCTL. Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.h')
-rw-r--r--drivers/scsi/be2iscsi/be_iscsi.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.h b/drivers/scsi/be2iscsi/be_iscsi.h
index 5928ba9d8918..0089e67badf8 100644
--- a/drivers/scsi/be2iscsi/be_iscsi.h
+++ b/drivers/scsi/be2iscsi/be_iscsi.h
@@ -23,13 +23,6 @@
#include "be_main.h"
#include "be_mgmt.h"
-#define BE2_IPV4 0x1
-#define BE2_IPV6 0x10
-#define BE2_DHCP_V4 0x05
-
-#define NON_BLOCKING 0x0
-#define BLOCKING 0x1
-
void beiscsi_iface_create_default(struct beiscsi_hba *phba);
void beiscsi_iface_destroy_default(struct beiscsi_hba *phba);