]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix steering rule of drop and count
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 12 Dec 2019 09:12:14 +0000 (11:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 12 Dec 2019 20:38:16 +0000 (15:38 -0500)
commite78646740cbedbceca3ba4a3b97a448ac881ba5a
tree8a2737286c0ccc3ffaceb468faa932504518ce9a
parenta500312932f5d7cf4bc71968b06f342fbee85aec
IB/mlx5: Fix steering rule of drop and count

There are two flow rule destinations: QP and packet. While users are
setting DROP packet rule, the QP should not be set as a destination.

Fixes: cb16afa0dd83 ("IB/mlx5: Add flow counters binding support")
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20191212091214.315005-4-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c