net/mlx5: fix tunnel offload detection
authorXueming Li <xuemingl@mellanox.com>
Mon, 4 Sep 2017 11:43:51 +0000 (19:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commit772d34356d72af2f5a3d483c83afb00d4cb4ae03
tree8a36a2061e03d45d28a5a1bf9c1a7b052140ac6e
parent15543fe12e106c35b1ac1cd02881ba00944446cd
net/mlx5: fix tunnel offload detection

PMD driver got random tunnel_en value on ConnextX-4LX NIC, depends on
compile optimization level. The variable was not initialized and
detection logic was absent.

Fixes: f5fde5205101 ("net/mlx5: add hardware checksum offload for tunnel packets")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5.c