commit | 448d7248191706cbbd7761e3bc72c2985c4d38a7 | [log] [tgz] |
---|---|---|
author | David Ahern <dsahern@gmail.com> | Fri Apr 05 16:30:31 2019 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 08 15:22:41 2019 -0700 |
tree | 30cf5625d5b433cce8f8b1bca1369249a2c9954b | |
parent | a4ea5d43c807be28545625c1e0641905022fa0d1 [diff] |
ipv4: Refactor fib_check_nh fib_check_nh is currently huge covering multiple uses cases - device only, device + gateway, and device + gateway with ONLINK. The next patch adds validation checks for IPv6 which only further complicates it. So, break fib_check_nh into 2 helpers - one for gateway validation and one for device only. Signed-off-by: David Ahern <dsahern@gmail.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>