Skip to content

NFS: Support binding to source address

[email protected] linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 1 replyIn review
  2. v111 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12sunrpc: Don't attempt to bind to AF_UNSPEC address.net/sunrpc/xprtsock.c+2 -20 replies
2/12nfs: Two AF_UNSPEC addresses should always match each other.fs/nfs/client.c+2 -00 replies
3/12nfs: Add srcaddr member to nfs_client.fs/nfs/internal.h fs/nfs/super.c include/linux/nfs_fs_sb.h+11 -00 replies
4/12nfs: Use request destination addr as callback source addr.fs/nfs/callback.h fs/nfs/callback_xdr.c include/linux/sunrpc/svc.h+11 -00 replies
5/12nfs: Pay attention to srcaddr in v4.1 callback logic.fs/nfs/callback_proc.c fs/nfs/client.c fs/nfs/internal.h+30 -40 replies
6/12nfs: Use srcaddr in nfs_match_client.fs/nfs/client.c+12 -00 replies
7/12nfs: Add srcaddr to /proc/fs/nfsfs/serversfs/nfs/client.c+16 -20 replies
8/12nfs: Pass srcaddr into mount request.fs/nfs/internal.h fs/nfs/mount_clnt.c fs/nfs/super.c+4 -00 replies
9/12nfs: Propagate src-addr in client code.fs/nfs/client.c+13 -00 replies
10/12nfs: Bind to srcaddr in rpcb_create.net/sunrpc/rpcb_clnt.c net/sunrpc/sunrpc.h net/sunrpc/xprtsock.c+71 -450 replies
11/12nfs: Support srcaddr= to bind to specific IP address.fs/nfs/super.c+28 -10 replies
11/12lockd: Support binding nlm client to specific address.fs/lockd/clntlock.c fs/lockd/host.c fs/nfs/client.c +3 more+23 -20 replies
12/12lockd: Support binding nlm client to specific address.fs/lockd/clntlock.c fs/lockd/host.c fs/nfs/client.c +3 more+23 -20 replies
12/12nfs: Support srcaddr= to bind to specific IP address.fs/nfs/super.c+28 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/12] NFS: Support binding to source address

From: Ben Greear <[email protected]>

This lets one specify the source IP address for
sockets, allowing users to leverage routing rules
on multi-homed systems.

Patches are also needed to nfs-utils. These have been posted and will be accepted if the kernel support is accepted.

v2: Add patch 11 to bind the NLM client to the proper
source address as well.

Ben Greear (12):
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: Add srcaddr to /proc/fs/nfsfs/servers
nfs: Pass srcaddr into mount request.
nfs: Propagate src-addr in client code.
nfs: Bind to srcaddr in rpcb_create.
lockd: Support binding nlm client to specific address.
nfs: Support srcaddr= to bind to specific IP address.

 fs/lockd/clntlock.c         |    3 +-
 fs/lockd/host.c             |   17 +++++++++-
 fs/nfs/callback.h           |    3 ++
 fs/nfs/callback_proc.c      |    3 +-
 fs/nfs/callback_xdr.c       |    3 ++
 fs/nfs/client.c             |   73 ++++++++++++++++++++++++++++++++++++++++--
 fs/nfs/internal.h           |   10 +++++-
 fs/nfs/mount_clnt.c         |    1 +
 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  |    5 +++
 net/sunrpc/rpcb_clnt.c      |   28 +++++++++++++++-
 net/sunrpc/sunrpc.h         |   45 ++++++++++++++++++++++++++
 net/sunrpc/xprtsock.c       |   47 +--------------------------
 17 files changed, 223 insertions(+), 56 deletions(-)
Signature · 1 line
1.7.3.4