net/mlx5: fix item validation in Direct Verbs
authorYongseok Koh <yskoh@mellanox.com>
Tue, 23 Oct 2018 16:52:12 +0000 (16:52 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit6949c43c147c504087f367ee0c42939809a6473e
tree1ae5ff463eac8314ecf3d7d01399649ebf4b2546
parent31b1999991a2da281d799eaea1e58b3b4bfaa296
net/mlx5: fix item validation in Direct Verbs

1) remove MPLS item in validation as it doesn't have a translator.

2) add missing NVGRE item to validation

3) match switch-case order between validation and translation.

Fixes: fc2c498ccb94 ("net/mlx5: add Direct Verbs translate items")
Fixes: 3d69434113d1 ("net/mlx5: add Direct Verbs validation function")

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c