Skip to content

net/ipv6: Add support for ONLINK flag

David Ahern netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/ipv6: Move gateway validation into helpernet/ipv6/route.c+49 -360 replies
2/3net/ipv6: Add flags and table id to ip6_nh_lookup_tablenet/ipv6/route.c+8 -40 replies
3/3net/ipv6: Add support for onlink flagnet/ipv6/route.c+50 -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 net-next 0/3] net/ipv6: Add support for ONLINK flag

Add support for RTNH_F_ONLINK with ipv6 routes.

First patch moves existing gateway validation into helper. The onlink flag requires a different set of checks and the existing validation makes ip6_route_info_create long enough.

Second patch makes the table id and lookup flag an option to ip6_nh_lookup_table. onlink check needs to verify the gateway without the RT6_LOOKUP_F_IFACE flag and PBR with VRF means the table id can vary between the table the route is inserted and the VRF the egress device is enslaved to.

Third patch adds support for RTNH_F_ONLINK.

I have a set of test cases in a format based on the framework Ido and Jiri are working on. Once that goes in I will adapt the script and submit.

v2
- removed table id check. Too constraining for PBR with VRF use cases

David Ahern (3):
net/ipv6: Move gateway validation into helper net/ipv6: Add flags and table id to ip6_nh_lookup_table net/ipv6: Add support for onlink flag

 net/ipv6/route.c | 140 ++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 103 insertions(+), 37 deletions(-)
Signature · 1 line
2.11.0