]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-ipv6-Add-support-for-ONLINK-flag'
authorDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 15:16:43 +0000 (10:16 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 15:16:43 +0000 (10:16 -0500)
commitc25471483bbf1ed8e657fcc49dd7c43673131d5d
tree93f66e07468c2458e7c0316873f0ff6e96f84502
parent7289df0863b77b7c169a41e059d4bcbd345c5b93
parent550169ad7e8eb3b7a19f0508f5ef70fdbe873701
Merge branch 'net-ipv6-Add-support-for-ONLINK-flag'

David Ahern says:

====================
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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>