Skip to content

net: API and initial implementation for nexthop objects

David Ahern netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: nexthop uapiinclude/uapi/linux/nexthop.h include/uapi/linux/rtnetlink.h security/selinux/nlmsgtab.c+70 -10 replies
2/6net: Initial nexthop codeinclude/net/net_namespace.h include/net/netns/nexthop.h include/net/nexthop.h +2 more+831 -10 replies
3/6nexthop: Add support for IPv4 nexthopsinclude/net/nexthop.h net/ipv4/nexthop.c+213 -00 replies
4/6nexthop: Add support for IPv6 gatewaysinclude/net/nexthop.h net/ipv4/nexthop.c+59 -00 replies
5/6nexthop: Add support for lwt encapsinclude/net/nexthop.h net/ipv4/nexthop.c+39 -10 replies
6/6nexthop: Add support for nexthop groupsinclude/net/nexthop.h net/ipv4/nexthop.c+578 -240 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/6] net: API and initial implementation for nexthop objects

From: David Ahern <[email protected]>

This set contains the API and initial implementation for nexthops as standalone objects.

Patch 1 contains the UAPI and updates to selinux struct.

Patch 2 contains the barebones code for nexthop commands, rbtree maintenance and notifications.

Patch 3 then adds support for IPv4 gateways along with handling of netdev events.

Patch 4 adds support for IPv6 gateways.

Patch 5 has the implementation of the encap attributes.

Patch 6 adds support for nexthop groups.

At the end of this set, nexthop objects can be created and deleted and userspace can monitor nexthop events, but ipv4 and ipv6 routes can not use them yet. Once the nexthop struct is defined, follow on sets add it to fib{6}_info and handle it within the respective code before routes can be inserted using them.

David Ahern (6):
net: nexthop uapi
net: Initial nexthop code
nexthop: Add support for IPv4 nexthops
nexthop: Add support for IPv6 gateways
nexthop: Add support for lwt encaps
nexthop: Add support for nexthop groups

 include/net/net_namespace.h    |    2 +
 include/net/netns/nexthop.h    |   18 +
 include/net/nexthop.h          |  195 ++++++
 include/uapi/linux/nexthop.h   |   56 ++
 include/uapi/linux/rtnetlink.h |   10 +
 net/ipv4/Makefile              |    2 +-
 net/ipv4/nexthop.c             | 1479 ++++++++++++++++++++++++++++++++++++++++
 security/selinux/nlmsgtab.c    |    5 +-
 8 files changed, 1765 insertions(+), 2 deletions(-)
 create mode 100644 include/net/netns/nexthop.h
 create mode 100644 include/net/nexthop.h
 create mode 100644 include/uapi/linux/nexthop.h
 create mode 100644 net/ipv4/nexthop.c
Signature · 1 line
2.11.0