mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
net: Do not call fib6_info_hw_flags_set() when IPv6 is disabled
With the next patch mlxsw and netdevsim will fail in compilation if CONFIG_IPV6 is disabled. Do not call fib6_info_hw_flags_set() when IPv6 is disabled. Signed-off-by: Amit Cohen <amcohen@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
fbaca8f895
commit
efc42879ec
@@ -585,6 +585,7 @@ err_fib6_rt_nh_del:
|
||||
return err;
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
static void nsim_fib6_rt_hw_flags_set(struct nsim_fib_data *data,
|
||||
const struct nsim_fib6_rt *fib6_rt,
|
||||
bool trap)
|
||||
@@ -595,6 +596,13 @@ static void nsim_fib6_rt_hw_flags_set(struct nsim_fib_data *data,
|
||||
list_for_each_entry(fib6_rt_nh, &fib6_rt->nh_list, list)
|
||||
fib6_info_hw_flags_set(net, fib6_rt_nh->rt, false, trap);
|
||||
}
|
||||
#else
|
||||
static void nsim_fib6_rt_hw_flags_set(struct nsim_fib_data *data,
|
||||
const struct nsim_fib6_rt *fib6_rt,
|
||||
bool trap)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
static int nsim_fib6_rt_add(struct nsim_fib_data *data,
|
||||
struct nsim_fib6_rt *fib6_rt)
|
||||
|
||||
Reference in New Issue
Block a user