From 9dca10af955255f9806942cb3370d4a86660a655 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sat, 29 Jan 2011 22:50:43 -0600 Subject: Use pass through interface for sendtargets (take4) Currenly offload cards like bnx2i, be2iscsi, cxgb3i must use a normal eth for discovery. This patch allows us to do discovery using the iscsi class passthrough interface. Note1 that the dirver must set the CAP_TEXT_NEGO setting, which might requires scsi-misc. Limitations of patch: - MaxRecvDataSegmentLength is limited to 8K for discovery sessions when offload is used. V3: - bug fixes from Eddie Wai to call start conn after we have logged in. Fixed set param not setting all settings. Misc cleanups. V4: - fix iscsistart segfault due to missing initialization. --- include/iscsi_if.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/iscsi_if.h b/include/iscsi_if.h index be72e1a..50a09cb 100644 --- a/include/iscsi_if.h +++ b/include/iscsi_if.h @@ -65,6 +65,8 @@ enum iscsi_uevent_e { ISCSI_UEVENT_PATH_UPDATE = UEVENT_BASE + 20, + ISCSI_UEVENT_MAX = ISCSI_UEVENT_PATH_UPDATE, + /* up events */ ISCSI_KEVENT_RECV_PDU = KEVENT_BASE + 1, ISCSI_KEVENT_CONN_ERROR = KEVENT_BASE + 2, @@ -75,6 +77,8 @@ enum iscsi_uevent_e { ISCSI_KEVENT_PATH_REQ = KEVENT_BASE + 7, ISCSI_KEVENT_IF_DOWN = KEVENT_BASE + 8, + + ISCSI_KEVENT_MAX = ISCSI_KEVENT_IF_DOWN, }; enum iscsi_tgt_dscvr { @@ -386,7 +390,7 @@ enum iscsi_host_param { #define CAP_HDRDGST 0x10 #define CAP_DATADGST 0x20 #define CAP_MULTI_CONN 0x40 -#define CAP_TEXT_NEGO 0x80 +#define CAP_TEXT_NEGO 0x80 /* support for text requests */ #define CAP_MARKERS 0x100 #define CAP_FW_DB 0x200 #define CAP_SENDTARGETS_OFFLOAD 0x400 /* offload discovery process */ -- cgit v1.2.1