mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
smb: client: pass struct smbdirect_socket to smbd_create_id()
This will make it easier to move function to the common code in future. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
94a0e794b7
commit
2569536b0c
|
|
@ -719,10 +719,9 @@ static void recv_done(struct ib_cq *cq, struct ib_wc *wc)
|
|||
}
|
||||
|
||||
static struct rdma_cm_id *smbd_create_id(
|
||||
struct smbd_connection *info,
|
||||
struct smbdirect_socket *sc,
|
||||
struct sockaddr *dstaddr, int port)
|
||||
{
|
||||
struct smbdirect_socket *sc = &info->socket;
|
||||
struct smbdirect_socket_parameters *sp = &sc->parameters;
|
||||
struct rdma_cm_id *id;
|
||||
int rc;
|
||||
|
|
@ -830,7 +829,7 @@ static int smbd_ia_open(
|
|||
WARN_ON_ONCE(sc->status != SMBDIRECT_SOCKET_CREATED);
|
||||
sc->status = SMBDIRECT_SOCKET_RESOLVE_ADDR_NEEDED;
|
||||
|
||||
sc->rdma.cm_id = smbd_create_id(info, dstaddr, port);
|
||||
sc->rdma.cm_id = smbd_create_id(sc, dstaddr, port);
|
||||
if (IS_ERR(sc->rdma.cm_id)) {
|
||||
rc = PTR_ERR(sc->rdma.cm_id);
|
||||
goto out1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user