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-07-09 10:59:26 -07:00
2019-07-08 11:00:02 +02:00
2019-07-12 16:03:16 -07:00
2019-07-12 15:13:55 -07:00
2019-07-09 08:59:39 -07:00
2019-07-13 16:08:36 -07:00
2019-07-11 18:11:21 -07:00
2019-07-11 15:14:01 -07:00
2019-07-13 16:08:36 -07:00
2019-07-11 18:11:21 -07:00
2019-07-11 15:17:41 -07:00
2019-07-08 09:54:55 -07:00
2019-07-01 15:04:59 +02:00
2019-07-11 18:45:29 -07:00
2019-07-09 08:57:45 -07:00
2019-07-11 15:40:06 -07:00
2019-07-05 08:15:08 +02:00
2019-07-11 15:14:01 -07:00
2019-07-13 16:08:36 -07:00
2019-07-12 15:13:55 -07:00
2019-07-12 15:13:55 -07:00