Message ID | 5702AF3F.90500@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Apr 04, 2016 at 11:15:27AM -0700, Shirley Ma wrote: > RFC 5666: The "rdma" netid is to be used when IPv4 addressing > is employed by the underlying transport, and "rdma6" for IPv6 > addressing. > Add mount -o proto=rdma6 option to support NFS/RDMA IPv6 addressing. > > Changes from v1: > - Integrated comments from Chuck Level, Anna Schumaker, Trodt Myklebust > - Add a little more to the patch description to describe NFS/RDMA > IPv6 usage > - Removed duplicated rdma6 define > - Removed Opt_xprt_rdma mountfamily since this doesn't support > > Signed-off-by: Shirley Ma <shirley.ma@oracle.com> It will be great if you can update the Documentation too. Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 04/04/2016 12:50 PM, Leon Romanovsky wrote: > On Mon, Apr 04, 2016 at 11:15:27AM -0700, Shirley Ma wrote: >> RFC 5666: The "rdma" netid is to be used when IPv4 addressing >> is employed by the underlying transport, and "rdma6" for IPv6 >> addressing. >> Add mount -o proto=rdma6 option to support NFS/RDMA IPv6 addressing. >> >> Changes from v1: >> - Integrated comments from Chuck Level, Anna Schumaker, Trodt Myklebust >> - Add a little more to the patch description to describe NFS/RDMA >> IPv6 usage >> - Removed duplicated rdma6 define >> - Removed Opt_xprt_rdma mountfamily since this doesn't support >> >> Signed-off-by: Shirley Ma <shirley.ma@oracle.com> > > It will be great if you can update the Documentation too. Sure, I will update documentation and man page. > Thanks > -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index f126828..c884155 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -191,6 +191,7 @@ static const match_table_t nfs_mount_option_tokens = { enum { Opt_xprt_udp, Opt_xprt_udp6, Opt_xprt_tcp, Opt_xprt_tcp6, Opt_xprt_rdma, + Opt_xprt_rdma6, Opt_xprt_err }; @@ -201,6 +202,7 @@ static const match_table_t nfs_xprt_protocol_tokens = { { Opt_xprt_tcp, "tcp" }, { Opt_xprt_tcp6, "tcp6" }, { Opt_xprt_rdma, "rdma" }, + { Opt_xprt_rdma6, "rdma6" }, { Opt_xprt_err, NULL } }; @@ -1456,6 +1458,8 @@ static int nfs_parse_mount_options(char *raw, mnt->flags |= NFS_MOUNT_TCP; mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; break; + case Opt_xprt_rdma6: + protofamily = AF_INET6; case Opt_xprt_rdma: /* vector side protocols to TCP */ mnt->flags |= NFS_MOUNT_TCP;
RFC 5666: The "rdma" netid is to be used when IPv4 addressing is employed by the underlying transport, and "rdma6" for IPv6 addressing. Add mount -o proto=rdma6 option to support NFS/RDMA IPv6 addressing. Changes from v1: - Integrated comments from Chuck Level, Anna Schumaker, Trodt Myklebust - Add a little more to the patch description to describe NFS/RDMA IPv6 usage - Removed duplicated rdma6 define - Removed Opt_xprt_rdma mountfamily since this doesn't support Signed-off-by: Shirley Ma <shirley.ma@oracle.com> --- fs/nfs/super.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html