net/mlx5: allow pattern start from IP
authorXiaoyu Min <jackmin@mellanox.com>
Tue, 5 Nov 2019 08:03:09 +0000 (10:03 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
commit0be2fba2f07d91aa7436fcf452aaff05ff5c6a62
tree58a1941e8f4654bb38aff2d4f07b942486c5034e
parentfba3213015891c7ec9634e66bec5eb8eaed0d70a
net/mlx5: allow pattern start from IP

Some applications, i.e. OVS, have rule like:

[1] pattern ipv4 / end actions ...

which intends to match ipv4 only on non-vlan ethernet and MLX5 NIC
supports this.

So PMD should accept this.

Fixes: 906a2efae8da ("net/mlx5: validate flow rule item order")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyu Min <jackmin@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.c