ipv4: Define fib_get_nhs when CONFIG_IP_ROUTE_MULTIPATH is disabled
authorDavid Ahern <dsahern@gmail.com>
Thu, 28 Mar 2019 03:53:46 +0000 (20:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 17:48:03 +0000 (10:48 -0700)
commit8373c6c84e6748e1dd8b82c43af37572ab040233
tree8e33c7e1dd091e105ebc3a975da2a3c099b2d0ea
parent113e59d09fbc7aadfe6fdb25d86c73be6cabc7bb
ipv4: Define fib_get_nhs when CONFIG_IP_ROUTE_MULTIPATH is disabled

Define fib_get_nhs to return EINVAL when CONFIG_IP_ROUTE_MULTIPATH is
not enabled and remove the ifdef check for CONFIG_IP_ROUTE_MULTIPATH
in fib_create_info.

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/ipv4/fib_semantics.c