diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-01-29 22:50:43 -0600 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2011-01-31 21:52:18 -0600 |
commit | 9dca10af955255f9806942cb3370d4a86660a655 (patch) | |
tree | 5fb8e7f4ada8989fec2c815de7044ea2b75a281a /include | |
parent | 44cc856b2115e6cd1221fe061b08b23d3cf188c8 (diff) | |
download | open-iscsi-9dca10af955255f9806942cb3370d4a86660a655.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/iscsi_if.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 */ |