]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fib: Add fib_info_hold() helper
authorIdo Schimmel <idosch@mellanox.com>
Sat, 3 Dec 2016 15:44:59 +0000 (16:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Dec 2016 00:29:35 +0000 (19:29 -0500)
commit7ed14650c1c26cad954f4fea5973eea539f71988
tree722b60bcd53e51286e982f1b6e6b8073240a5b97
parent7219e6287b3b17758502312a9a7834c6223fa3d6
ipv4: fib: Add fib_info_hold() helper

As explained in the previous commit, modules are going to need to take a
reference on fib info and then drop it using fib_info_put().

Add the fib_info_hold() helper to make the code more readable and also
symmetric with fib_info_put().

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Suggested-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h