]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: refactor key and length checks
authorDavid Ahern <dsahern@gmail.com>
Sat, 27 May 2017 22:19:25 +0000 (16:19 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:55:31 +0000 (11:55 -0400)
commit5b1d7c6f8290337da8cc6ef46d5c67ece6c5136d
tree6088f00fefb073abbc271ca759a29621617469e4
parent0593b4f15507f414487b61d9f6dfadf83be16bb7
net: ipv4: refactor key and length checks

fib_table_insert and fib_table_delete have the same checks on the prefix
and length. Refactor into a helper. Avoids duplicate extack messages in
the next patch.

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