]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Allow routes to use nexthop objects
authorDavid Ahern <dsahern@gmail.com>
Sat, 8 Jun 2019 21:53:32 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 17:44:56 +0000 (10:44 -0700)
commit1d8053328272be954c754c9e26271ce50937128b
tree03302235b6891c86e4e53d8ea7730f6c7135ce65
parent9bbd95748a825807ff1426be0b86f22be00569be
ipv4: Allow routes to use nexthop objects

Add support for RTA_NH_ID attribute to allow a user to specify a
nexthop id to use with a route. fc_nh_id is added to fib_config to
hold the value passed in the RTA_NH_ID attribute. If a nexthop id
is given, the gateway, device, encap and multipath attributes can
not be set.

Update fib_nh_match to check ids on a route delete.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_semantics.c