smb: client/smbdirect: introduce SMBDIRECT_SOCKET_ERROR
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Aug 2025 08:39:56 +0000 (10:39 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:48 +0000 (18:29 -0500)
commitcc678b8a89291ef55c8dfc01391506f1234c6cae
tree12b553596593ce24ebe6d3534e323340f45737e8
parent58dfba8a2d4eb6defc6e710196b053abdaf6cd79
smb: client/smbdirect: introduce SMBDIRECT_SOCKET_ERROR

This will be used to turn SMBDIRECT_SOCKET_CONNECTED into an
error within smbd_disconnect_rdma_connection() on the client
and smb_direct_disconnect_rdma_connection() on the server.

We do this in a single commit with the client as otherwise it
won't build because the enum value is not handled in the
switch statement.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c
fs/smb/common/smbdirect/smbdirect_socket.h