libcli/smb/smb_direct.c large buffers master3-rdma
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Oct 2016 11:18:03 +0000 (13:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2018 12:35:20 +0000 (14:35 +0200)
libcli/smb/smb_direct.c

index c9dd0312e0cb2d908c30d10394a12b9242c14c19..9cc0d861ccfcbb4df9ef6ad85a7fe3d262e549c0 100644 (file)
 #define SMB_DIRECT_DATA_MIN_HDR_SIZE 0x14
 #define SMB_DIRECT_DATA_OFFSET NDR_ROUND(SMB_DIRECT_DATA_MIN_HDR_SIZE, 8)
 
+#undef SMB_DIRECT_MAX_SEND_SIZE
+#undef SMB_DIRECT_MAX_RECEIVE_SIZE
+#undef SMB_DIRECT_MAX_FRAGMENT_SIZE
+#undef SMB_DIRECT_MAX_READ_WRITE_SIZE
+#define SMB_DIRECT_MAX_SEND_SIZE 8192*16*4
+#define SMB_DIRECT_MAX_RECEIVE_SIZE 8192*16*4
+#define SMB_DIRECT_MAX_FRAGMENT_SIZE 1048576*8
+#define SMB_DIRECT_MAX_READ_WRITE_SIZE 1048576*8
+
 #define SMB_DIRECT_RESPONSE_REQUESTED 0x0001
 
 struct smb_direct_listener;