commit | ba277e8e05dbd4aa13f74f859e276d5d54467eab | [log] [tgz] |
---|---|---|
author | David Ahern <dsahern@gmail.com> | Sat May 27 16:19:25 2017 -0600 |
committer | David S. Miller <davem@davemloft.net> | Tue May 30 11:55:31 2017 -0400 |
tree | 6088f00fefb073abbc271ca759a29621617469e4 | |
parent | f1bd4daead9a4df48d1bb2821cff3a40da543b5b [diff] |
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>