lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH2r5mvuASr7UkjbW6BmiZyccmtgqoHaVA52jpRV-LDOj3JXyQ@mail.gmail.com>
Date:   Mon, 20 Nov 2017 10:56:11 -0600
From:   Steve French <smfrench@...il.com>
To:     Long Li <longli@...hange.microsoft.com>
Cc:     Steve French <sfrench@...ba.org>,
        "linux-cifs@...r.kernel.org" <linux-cifs@...r.kernel.org>,
        samba-technical <samba-technical@...ts.samba.org>,
        LKML <linux-kernel@...r.kernel.org>, linux-rdma@...r.kernel.org,
        Christoph Hellwig <hch@...radead.org>,
        Tom Talpey <ttalpey@...rosoft.com>,
        Matthew Wilcox <mawilcox@...rosoft.com>,
        Stephen Hemminger <sthemmin@...rosoft.com>,
        Long Li <longli@...rosoft.com>
Subject: Re: [Patch v6 07/22] CIFS: SMBD: Implement function to create a SMB
 Direct connection

merged into cifs-2.6.git for-next

On Sun, Nov 5, 2017 at 12:43 AM, Long Li <longli@...hange.microsoft.com> wrote:
> From: Long Li <longli@...rosoft.com>
>
> The upper layer calls this function to connect to peer through SMB Direct.
> Each SMB Direct connection is based on a RDMA RC Queue Pair.
>
> Signed-off-by: Long Li <longli@...rosoft.com>
> ---
>  fs/cifs/smbdirect.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
> index 7af49cd..47d999f 100644
> --- a/fs/cifs/smbdirect.c
> +++ b/fs/cifs/smbdirect.c
> @@ -1652,3 +1652,20 @@ struct smbd_connection *_smbd_get_connection(
>         kfree(info);
>         return NULL;
>  }
> +
> +struct smbd_connection *smbd_get_connection(
> +       struct TCP_Server_Info *server, struct sockaddr *dstaddr)
> +{
> +       struct smbd_connection *ret;
> +       int port = SMBD_PORT;
> +
> +try_again:
> +       ret = _smbd_get_connection(server, dstaddr, port);
> +
> +       /* Try SMB_PORT if SMBD_PORT doesn't work */
> +       if (!ret && port == SMBD_PORT) {
> +               port = SMB_PORT;
> +               goto try_again;
> +       }
> +       return ret;
> +}
> --
> 2.7.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Thanks,

Steve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ