]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b3aac98d88350b1e72353f21b5f31c8fec87dc5
tree118a7eeb0010126bb1463183a58d4562b4ac3150
parent2da1c0785d1e08a86ceb173b19d93550f1b8f88a
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