Eli Cohen d71f895c31 net/mlx5e: Verify encapsulation is supported
When mlx5e_attach_encap() calls mlx5e_get_tc_tun() to get the tunnel
info data struct, check that returned value is not NULL, as would be in
the case of unsupported encapsulation.

Fixes: d386939a327d2 ("net/mlx5e: Rearrange tc tunnel code in a modular way")
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-07-15 13:04:04 -07:00
..
2019-06-14 19:47:05 -07:00
2019-06-21 09:58:42 -07:00
2019-07-03 11:24:38 -07:00
2019-05-14 15:20:11 -07:00
2019-07-08 19:25:19 -07:00
2019-07-08 19:25:19 -07:00
2019-06-25 14:26:54 +02:00