File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 15
15
#include <rdma/rdma_cm.h>
16
16
#include <linux/mempool.h>
17
17
18
+ #include "../common/smbdirect/smbdirect.h"
18
19
#include "../common/smbdirect/smbdirect_socket.h"
19
20
20
21
extern int rdma_readwrite_threshold ;
Original file line number Diff line number Diff line change @@ -14,4 +14,24 @@ struct smbdirect_buffer_descriptor_v1 {
14
14
__le32 length ;
15
15
} __packed ;
16
16
17
+ /*
18
+ * Connection parameters mostly from [MS-SMBD] 3.1.1.1
19
+ *
20
+ * These are setup and negotiated at the beginning of a
21
+ * connection and remain constant unless explicitly changed.
22
+ *
23
+ * Some values are important for the upper layer.
24
+ */
25
+ struct smbdirect_socket_parameters {
26
+ __u16 recv_credit_max ;
27
+ __u16 send_credit_target ;
28
+ __u32 max_send_size ;
29
+ __u32 max_fragmented_send_size ;
30
+ __u32 max_recv_size ;
31
+ __u32 max_fragmented_recv_size ;
32
+ __u32 max_read_write_size ;
33
+ __u32 keepalive_interval_msec ;
34
+ __u32 keepalive_timeout_msec ;
35
+ } __packed ;
36
+
17
37
#endif /* __FS_SMB_COMMON_SMBDIRECT_SMBDIRECT_H__ */
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ struct smbdirect_socket {
36
36
struct ib_qp * qp ;
37
37
struct ib_device * dev ;
38
38
} ib ;
39
+
40
+ struct smbdirect_socket_parameters parameters ;
39
41
};
40
42
41
43
#endif /* __FS_SMB_COMMON_SMBDIRECT_SMBDIRECT_SOCKET_H__ */
You can’t perform that action at this time.
0 commit comments