]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5235fd16311d8b291d2dab9b09418717c0e93f29
tree7d813fde7ad46d5fe360c246b779267f07174a81
parentc3b6f42e38061a6de0c3ae7e71cc653f377f187e
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