diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-08-08 12:46:25 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-09-28 18:29:52 -0500 |
| commit | e2d5e516c66383bed098b60be4925f9cbe9e3530 (patch) | |
| tree | cb5e55a5d24f488b68e25de088dd37b6f6b9d2c5 /scripts/gdb/linux/modules.py | |
| parent | c82a53211a378e70866aac8ec49f4df64905ccc2 (diff) | |
smb: server: only turn into SMBDIRECT_SOCKET_CONNECTED when negotiation is done
From SMBDIRECT_SOCKET_CREATED we now go via the following
stages:
1. SMBDIRECT_SOCKET_RDMA_CONNECT_NEEDED
This indicated rdma_accept needs to be called
2. SMBDIRECT_SOCKET_RDMA_CONNECT_RUNNING
This waits for RDMA_CM_EVENT_ESTABLISHED to
arrive
3. SMBDIRECT_SOCKET_NEGOTIATE_NEEDED
This waits for the negotiate request to
arrive
4. SMBDIRECT_SOCKET_NEGOTIATE_RUNNING
This indicates the negotiate request
arrived and needs to be processed
5. SMBDIRECT_SOCKET_CONNECTED
The connection is ready to use
This avoids the extra 'bool negotiation_requested'
and makes the steps more clear.
In future we may want to add trace points when
changing the states, which would be useful for
debugging.
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions
