net/mlx5: fix flow director matching rules
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Fri, 27 Oct 2017 06:50:00 +0000 (08:50 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:17:06 +0000 (22:17 +0100)
commit0eefd129b9d4926912a9051c593d90b5e4feaae5
tree76dbdcab45773df61e2e9d54bbf5fd5dce294196
parent9cea9e567207b46f26ab112f63b6bffbf9a35d68
net/mlx5: fix flow director matching rules

Flow director API does not provide a layer 2 configuration when the
filter is for layer 3 and 4 causing the translation to generic flow API
to be wrong, as not providing a mask for layer ends by using the
default one.
In this case, the Ethernet mask layer is full whereas it must be empty.

Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c