Skip to content

RFC net: introduce generic type and helpers for IP address

Cong Wang cluster-devel linux-cifs linux-nfs lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: introduce generic union inet_addrDocumentation/printk-formats.txt drivers/net/netconsole.c include/linux/netpoll.h +3 more+122 -504 replies
2/5net: introduce generic inet_pton()include/net/inet_addr.h net/core/netpoll.c+22 -226 replies
3/5inetpeer: use generic union inet_addrinclude/net/inetpeer.h net/ipv4/inetpeer.c net/ipv4/tcp_metrics.c+68 -882 replies
4/5sunrpc: use generic union inet_addrinclude/linux/sunrpc/addr.h include/net/inet_addr.h+64 -1114 replies
5/5nfs,cifs: abstract generic inet_addr_equal_strict()fs/cifs/connect.c fs/dlm/lowcomms.c fs/nfs/client.c +3 more+55 -2010 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC Patch net-next 0/5] net: introduce generic type and helpers for IP address

As IPv6 becomes popular, more and more subsystems begin to support IPv6, therefore we need a generic IP address type, in case of duplicates. Also we will also need some helpers to compare, print, check the generic IP address.

This patchset introduce a new type union inet_addr as a union of IPv4 and IPv6 address, and some helper functions that will be used by existing code and in the future VXLAN module.

This patchset only does compile test, since it is still RFC.

Cong Wang (5):
net: introduce generic union inet_addr
net: introduce generic inet_pton()
inetpeer: use generic union inet_addr
sunrpc: use generic union inet_addr nfs,cifs: abstract generic inet_addr_equal_strict()

 Documentation/printk-formats.txt |    9 ++
 drivers/net/netconsole.c         |   22 +++---
 fs/cifs/connect.c                |   38 ++-------
 fs/dlm/lowcomms.c                |   24 +-----
 fs/nfs/client.c                  |   94 +--------------------
 fs/nfs/nfs4filelayoutdev.c       |   37 +--------
 fs/nfs/super.c                   |   31 +-------
 include/linux/netpoll.h          |    9 +--
 include/linux/sunrpc/addr.h      |  119 ++-------------------------
 include/net/inet_addr.h          |  164 ++++++++++++++++++++++++++++++++++++++
 include/net/inetpeer.h           |   29 ++-----
 lib/vsprintf.c                   |   18 ++++-
 net/core/netpoll.c               |   74 ++++++-----------
 net/ipv4/inetpeer.c              |   35 +++++---
 net/ipv4/tcp_metrics.c           |   92 +++++++++-------------
 15 files changed, 327 insertions(+), 468 deletions(-)
 create mode 100644 include/net/inet_addr.h
Signature · 1 line
1.7.7.6