net/mlx5: fix crash for empty raw encap data
authorXiaoyu Min <jackmin@mellanox.com>
Tue, 20 Aug 2019 09:47:14 +0000 (17:47 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Aug 2019 12:41:13 +0000 (14:41 +0200)
commitc6cc228e9ddf3df925ac9482925059666bc9acb1
tree3d524270880efb67a74417b7d818ced8bc360ef7
parent61874d3c0663504f83d93a4701627a5949160a0f
net/mlx5: fix crash for empty raw encap data

For the rte_flow_action_raw_encap, the header definition for
encapsulation must be available, otherwise it will lead to crash on some
OFED versions and logically it should be rejected.

Fixes: 8ba9eee4ce32 ("net/mlx5: add raw data encap/decap to Direct Verbs")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyu Min <jackmin@mellanox.com>
Acked-by: Dekel Peled <dekelp@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c