aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iscsi/icl.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-05-20 16:59:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-05-20 16:59:11 +0000
commit0cc7d64a2a37533afe03d2b640dc107be41b5f56 (patch)
tree15ba514d2bd751973545a6114539ed14cf9700f6 /sys/dev/iscsi/icl.h
parent71e3d1b3a0ee4080c53615167bde4d93efe103fe (diff)
downloadsrc-0cc7d64a2a37533afe03d2b640dc107be41b5f56.tar.gz
src-0cc7d64a2a37533afe03d2b640dc107be41b5f56.zip
iscsi: Move the maximum data segment limits into 'struct icl_conn'.
This fixes a few bugs in iSCSI backends where the backends were using the limits they advertised initially during the login phase as the final values instead of the values negotiated with the other end. Reported by: Jithesh Arakkan @ Chelsio Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D30271
Diffstat (limited to 'sys/dev/iscsi/icl.h')
-rw-r--r--sys/dev/iscsi/icl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iscsi/icl.h b/sys/dev/iscsi/icl.h
index 0b897a50302a..94600c0edad1 100644
--- a/sys/dev/iscsi/icl.h
+++ b/sys/dev/iscsi/icl.h
@@ -109,7 +109,8 @@ struct icl_conn {
bool ic_data_crc32c;
bool ic_send_running;
bool ic_receive_running;
- size_t ic_max_data_segment_length;
+ uint32_t ic_max_recv_data_segment_length;
+ uint32_t ic_max_send_data_segment_length;
size_t ic_maxtags;
bool ic_disconnecting;
bool ic_iser;