net/ipv6: Refactor gateway validation on route add
authorDavid Ahern <dsahern@gmail.com>
Tue, 13 Mar 2018 15:29:36 +0000 (08:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 15:28:38 +0000 (11:28 -0400)
commit9fbb704c3385adf5f9adfce7fd3c0bf31aa4da6d
tree41951174608811699e9d05b3f3edf806f810fb70
parent1ad2ff028f36c8cdbf149db740eb36aead7b375e
net/ipv6: Refactor gateway validation on route add

Move gateway validation code from ip6_route_info_create into
ip6_validate_gw. Code move plus adjustments to handle the potential
reset of dev and idev and to make checkpatch happy.

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