]> git.baikalelectronics.ru Git - kernel.git/commit
net: Use common nexthop init and release helpers
authorDavid Ahern <dsahern@gmail.com>
Thu, 28 Mar 2019 03:53:58 +0000 (20:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 17:48:04 +0000 (10:48 -0700)
commit010f30a3db9f9fa3e8f4cd11905a5cad2e459ad5
treee1b340126841f37f96730a0e84d9428344612273
parenta72b975ca680f6516175261c519047cde125de3d
net: Use common nexthop init and release helpers

With fib_nh_common in place, move common initialization and release
code into helpers used by both ipv4 and ipv6. For the moment, the init
is just the lwt encap and the release is both the netdev reference and
the the lwt state reference. More will be added later.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_semantics.c
net/ipv6/route.c