OSDN Git Service

ipv4: Extend FIB alias find function
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Dec 2019 15:53:08 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:14:42 +0000 (16:14 -0800)
commitb5fc0430dcbb36294b29a25cddb3bf7e92fe2307
tree118a7eeb0010126bb1463183a58d4562b4ac3150
parenta6c76c17df021b141b0d306828c9fe4ba2d2717c
ipv4: Extend FIB alias find function

Extend the function with another argument, 'find_first'. When set, the
function returns the first FIB alias with the matching {prefix, prefix
length, table ID}. The TOS and priority parameters are ignored. Current
callers are converted to pass 'false' in order to maintain existing
behavior.

This will be used by subsequent patches in the series.

v2:
* New patch

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c