net: Do not call fib6_info_hw_flags_set() when IPv6 is disabled
authorAmit Cohen <amcohen@nvidia.com>
Mon, 1 Feb 2021 19:47:54 +0000 (21:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 01:45:59 +0000 (17:45 -0800)
commitefc42879ec9ea85d5d17019536f2f8c5da455498
tree7d813fde7ad46d5fe360c246b779267f07174a81
parentfbaca8f895a6855b0b442227bc21da2d4cf77a01
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/netdevsim/fib.c