diff options
author | mav <mav@FreeBSD.org> | 2014-11-22 15:09:18 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-11-22 15:09:18 +0000 |
commit | 2efae2e6b18d927420b0efb91643ae5aaecb550a (patch) | |
tree | aeb65e65f9fc0f17e3b1102476294ff7d9c3f021 /usr.sbin/ctld/ctld.h | |
parent | bc2cba33a9b7b0a543aa63d3146154bd5eb8ce22 (diff) | |
download | FreeBSD-src-2efae2e6b18d927420b0efb91643ae5aaecb550a.zip FreeBSD-src-2efae2e6b18d927420b0efb91643ae5aaecb550a.tar.gz |
For both iSCSI initiator and target increase socket buffer sizes before
establishing connection.
This is a workaround for Chelsio TOE driver, that does not update socket
buffer size in hardware after connection established, and unless that is
done beforehand, kernel code will stuck, attempting to send/receive full
PDU at once.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/ctld/ctld.h')
-rw-r--r-- | usr.sbin/ctld/ctld.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h index 600bd30..34c0891 100644 --- a/usr.sbin/ctld/ctld.h +++ b/usr.sbin/ctld/ctld.h @@ -48,6 +48,7 @@ #define MAX_NAME_LEN 223 #define MAX_DATA_SEGMENT_LENGTH (128 * 1024) #define MAX_BURST_LENGTH 16776192 +#define SOCKBUF_SIZE 1048576 struct auth { TAILQ_ENTRY(auth) a_next; |