Skip to content

RFC net: ILA resolver and generic resolver backend

Tom Herbert netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6spinlock: Add library function to allocate spinlock buckets arrayinclude/linux/spinlock.h lib/Makefile lib/bucket_locks.c+70 -12 replies
2/6rhashtable: Call library function alloc_bucket_lockslib/rhashtable.c+4 -422 replies
3/6ila: Call library function alloc_bucket_locksnet/ipv6/ila/ila_xlat.c+5 -310 replies
4/6rhashtable: abstract out function to get hashinclude/linux/rhashtable.h+18 -101 reply
5/6net: Generic resolver backendinclude/net/resolver.h net/Kconfig net/core/Makefile +1 more+330 -02 replies
6/6ila: Resolver mechanisminclude/uapi/linux/lwtunnel.h include/uapi/linux/rtnetlink.h net/ipv6/Kconfig +6 more+239 -90 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchThomas Graf
1/6A-b
2/6A-b
3/6
4/6A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RFC 0/6] net: ILA resolver and generic resolver backend

This patch sets implements an ILA host side resolver. This uses LWT to implement the hook to a userspace resolver and tracks pending unresolved address using the backend net resolver.

This patch set contains:

- An new library function to allocate an array of spinlocks for use with locking hash buckets.
- Make hash function in rhashtable directly callable.
- A generic resolver backend infrastructure. This primary does two
things: track unsesolved addresses and implement a timeout for resolution not happening. These mechanisms provides rate limiting control over resolution requests (for instance in ILA it use used to rate limit requests to userspace to resolve addresses).
- The ILA resolver. This is implements to path from the kernel ILA implementation to a userspace daemon that an identifier address needs to be resolved.

Tom Herbert (6):
spinlock: Add library function to allocate spinlock buckets array
rhashtable: Call library function alloc_bucket_locks
ila: Call library function alloc_bucket_locks
rhashtable: abstract out function to get hash
net: Generic resolver backend
ila: Resolver mechanism

 include/linux/rhashtable.h     |  28 +++--
 include/linux/spinlock.h       |   6 +
 include/net/resolver.h         |  58 +++++++++
 include/uapi/linux/lwtunnel.h  |   1 +
 include/uapi/linux/rtnetlink.h |   5 +
 lib/Makefile                   |   2 +-
 lib/bucket_locks.c             |  63 ++++++++++
 lib/rhashtable.c               |  46 +------
 net/Kconfig                    |   4 +
 net/core/Makefile              |   1 +
 net/core/resolver.c            | 267 +++++++++++++++++++++++++++++++++++++++++
 net/ipv6/Kconfig               |   1 +
 net/ipv6/ila/Makefile          |   2 +-
 net/ipv6/ila/ila.h             |  16 +++
 net/ipv6/ila/ila_common.c      |   7 ++
 net/ipv6/ila/ila_lwt.c         |   9 ++
 net/ipv6/ila/ila_resolver.c    | 192 +++++++++++++++++++++++++++++
 net/ipv6/ila/ila_xlat.c        |  51 ++------
 18 files changed, 666 insertions(+), 93 deletions(-)
 create mode 100644 include/net/resolver.h
 create mode 100644 lib/bucket_locks.c
 create mode 100644 net/core/resolver.c
 create mode 100644 net/ipv6/ila/ila_resolver.c
Signature · 1 line
2.8.0.rc2