net/mlx5e: Make sure fib dev exists in fib event
authorRoi Dayan <roid@nvidia.com>
Sun, 2 May 2021 07:25:50 +0000 (10:25 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 19 May 2021 06:01:36 +0000 (23:01 -0700)
commiteb96cc15926f4ddde3a28c42feeffdf002451c24
tree7e863a5f4b249b9190492cbce7a88ef366968115
parent83026d83186bc48bb41ee4872f339b83f31dfc55
net/mlx5e: Make sure fib dev exists in fib event

For unreachable route entry the fib dev does not exists.

Fixes: 8914add2c9e5 ("net/mlx5e: Handle FIB events to update tunnel endpoint device")
Reported-by: Dennis Afanasev <dennis.afanasev@stateless.net>
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c