net/mlx5: fix flow director rule deletion crash
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 26 Apr 2018 16:17:46 +0000 (18:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 May 2018 17:28:48 +0000 (19:28 +0200)
commit6f2f4948b23643d279f38d38f988b122f393270f
treef27d7113311c352d9d0a7406d523ff95b12c4c7d
parent51c7de38e2b1ee16eb6ce0aa257048a4f4d8275e
net/mlx5: fix flow director rule deletion crash

Flow director rules matching traffic properties above layer 2 do not
target a fixed hash Rx queue (HASH_RXQ_ETH), it actually depends on the
highest protocol layer specified by each flow rule.

mlx5_fdir_filter_delete() makes this wrong assumption and causes a crash
when attempting to destroy flow rules with L3/L4 specifications.

Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c