From: greearb@candelatech.com
To: linux-nfs@vger.kernel.org
Cc: Ben Greear <greearb@candelatech.com>
Subject: [RFC 00/13] Allow NFS to bind to local IP address.
Date: Mon, 21 Jan 2013 12:45:46 -0800 [thread overview]
Message-ID: <1358801159-18829-1-git-send-email-greearb@candelatech.com> (raw)
From: Ben Greear <greearb@candelatech.com>
This patch series allows binding the nfs and rpc logic to a specific local
IP address.
Features/Benefits:
* Allow multiple unique mounts to the same server using unique
source IP addresses on client system.
Routing rules can then be created based on the source IP address for
advanced routing of the NFS traffic.
This could allow someone to use two 1G interfaces to access a
server with 10G connectivity and allow aggregate 2Gbps transfer,
for instance.
This is also useful for load testing NFS servers as well as the
client-side NFS logic (note the bugs & fixed found while testing
this code!)
* Allow using a specific IP address on multi-homed system. This could
increase security in some cases and in general gives the user more
control over how the services are configured.
This code has been tested under load on 3.7.3 and similar versions have
been tested for many years on previous kernels.
Full implementation of this feature requires patches to mount.nfs,
which were previously agreed to be accepted if the kernel patches are accepted.
Ben Greear (13):
sunrpc: Don't attempt to bind to AF_UNSPEC address.
nfs: Two AF_UNSPEC addresses should always match each other.
nfs: Add srcaddr member to nfs_client.
nfs: Use request destination addr as callback source addr.
nfs: Pay attention to srcaddr in v4.1 callback logic.
nfs: Use srcaddr in nfs_match_client.
nfs: Pass srcaddr into mount request.
nfs: Propagate src-addr in client code.
nfs: Bind to srcaddr in rpcb_create.
nfs: Support srcaddr= to bind to specific IP address.
nfs: Add srcaddr to /proc/fs/nfsfs/servers
lockd: Support binding nlm client to specific address.
nfs: Allow up to 5000 NFSv4 connections (instead of 1024).
fs/lockd/clntlock.c | 3 +-
fs/lockd/host.c | 17 +++++++++++++++-
fs/nfs/callback.c | 2 +-
fs/nfs/callback.h | 3 ++
fs/nfs/callback_proc.c | 3 +-
fs/nfs/callback_xdr.c | 3 ++
fs/nfs/client.c | 35 ++++++++++++++++++++++++++++++-
fs/nfs/internal.h | 14 +++++++++++-
fs/nfs/mount_clnt.c | 1 +
fs/nfs/nfs4client.c | 32 +++++++++++++++++++++++++++++-
fs/nfs/super.c | 33 +++++++++++++++++++++++++++++-
include/linux/lockd/bind.h | 1 +
include/linux/lockd/lockd.h | 1 +
include/linux/nfs_fs_sb.h | 4 +++
include/linux/sunrpc/clnt.h | 2 +
include/linux/sunrpc/svc.h | 1 +
net/sunrpc/rpcb_clnt.c | 31 ++++++++++++++++++++++++++--
net/sunrpc/sunrpc.h | 45 ++++++++++++++++++++++++++++++++++++++++++
net/sunrpc/xprtsock.c | 46 +-----------------------------------------
19 files changed, 220 insertions(+), 57 deletions(-)
--
1.7.3.4
next reply other threads:[~2013-01-21 20:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 20:45 greearb [this message]
2013-01-21 20:45 ` [RFC 01/13] sunrpc: Don't attempt to bind to AF_UNSPEC address greearb
2013-01-21 20:45 ` [RFC 02/13] nfs: Two AF_UNSPEC addresses should always match each other greearb
2013-01-21 20:45 ` [RFC 03/13] nfs: Add srcaddr member to nfs_client greearb
2013-01-21 20:45 ` [RFC 04/13] nfs: Use request destination addr as callback source addr greearb
2013-01-21 20:45 ` [RFC 05/13] nfs: Pay attention to srcaddr in v4.1 callback logic greearb
2013-01-21 20:45 ` [RFC 06/13] nfs: Use srcaddr in nfs_match_client greearb
2013-01-21 20:45 ` [RFC 07/13] nfs: Pass srcaddr into mount request greearb
2013-01-21 20:45 ` [RFC 08/13] nfs: Propagate src-addr in client code greearb
2013-01-21 20:45 ` [RFC 09/13] nfs: Bind to srcaddr in rpcb_create greearb
2013-01-21 20:45 ` [RFC 10/13] nfs: Support srcaddr= to bind to specific IP address greearb
2013-01-21 20:45 ` [RFC 11/13] nfs: Add srcaddr to /proc/fs/nfsfs/servers greearb
2013-01-21 20:45 ` [RFC 12/13] lockd: Support binding nlm client to specific address greearb
2013-01-21 20:45 ` [RFC 13/13] nfs: Allow up to 5000 NFSv4 connections (instead of 1024) greearb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358801159-18829-1-git-send-email-greearb@candelatech.com \
--to=greearb@candelatech.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.