diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-06-25 01:26:02 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-07-03 22:44:33 -0400 |
commit | 3e23d025bc19940979c4f0c67a39d64af7c893c6 (patch) | |
tree | f780a8fa2e39543ce655c0f20e6544a9bf41d921 /drivers/target/iscsi | |
parent | 8a3918571a4eb3ae10ddd4aaec591b4af80d1172 (diff) |
iscsi-target: Drop left-over iscsi_conn->bad_hdr
All REJECT response setup of the rejected payload is now done using
on-demand cmd->buf_ptr allocations.
Go ahead and remove dead iscsi_conn->bad_hdr usage rx_opcode path
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 5 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_core.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index f2c3d4abfe70..dc2c0565736d 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -4105,11 +4105,6 @@ restart: | |||
4105 | goto transport_err; | 4105 | goto transport_err; |
4106 | } | 4106 | } |
4107 | 4107 | ||
4108 | /* | ||
4109 | * Set conn->bad_hdr for use with REJECT PDUs. | ||
4110 | */ | ||
4111 | memcpy(&conn->bad_hdr, &buffer, ISCSI_HDR_LEN); | ||
4112 | |||
4113 | if (conn->conn_ops->HeaderDigest) { | 4108 | if (conn->conn_ops->HeaderDigest) { |
4114 | iov.iov_base = &digest; | 4109 | iov.iov_base = &digest; |
4115 | iov.iov_len = ISCSI_CRC_LEN; | 4110 | iov.iov_len = ISCSI_CRC_LEN; |
diff --git a/drivers/target/iscsi/iscsi_target_core.h b/drivers/target/iscsi/iscsi_target_core.h index 391283c85313..caa0ad9a778b 100644 --- a/drivers/target/iscsi/iscsi_target_core.h +++ b/drivers/target/iscsi/iscsi_target_core.h | |||
@@ -532,8 +532,6 @@ struct iscsi_conn { | |||
532 | u32 of_marker; | 532 | u32 of_marker; |
533 | /* Used for calculating OFMarker offset to next PDU */ | 533 | /* Used for calculating OFMarker offset to next PDU */ |
534 | u32 of_marker_offset; | 534 | u32 of_marker_offset; |
535 | /* Complete Bad PDU for sending reject */ | ||
536 | unsigned char bad_hdr[ISCSI_HDR_LEN]; | ||
537 | #define IPV6_ADDRESS_SPACE 48 | 535 | #define IPV6_ADDRESS_SPACE 48 |
538 | unsigned char login_ip[IPV6_ADDRESS_SPACE]; | 536 | unsigned char login_ip[IPV6_ADDRESS_SPACE]; |
539 | unsigned char local_ip[IPV6_ADDRESS_SPACE]; | 537 | unsigned char local_ip[IPV6_ADDRESS_SPACE]; |