RDMA/mlx5: Fix drop packet rule in egress table
authorMaor Gottlieb <maorg@nvidia.com>
Thu, 18 Mar 2021 13:51:23 +0000 (15:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:31 +0000 (09:50 +0200)
commit78f537c0054a485d4e3dfb69866e2611a4bcc5c9
treeb5d49bdf1e3943a9a6a303b5c299a3d5f3b28e87
parent4ff081701b3ddbec417412638168f922527cf4df
RDMA/mlx5: Fix drop packet rule in egress table

[ Upstream commit c73700806d4e430d182c2be069d230076818a99a ]

Initial drop action support missed that drop action can be added to egress
flow tables as well. Add the missing support.

This requires making sure that dest_type isn't set to PORT which in turn
exposes a possibility of passing dst while indicating number of dsts as
zero. Explicitly check for number of dsts and pass the appropriate
pointer.

Fixes: f29de9eee782 ("RDMA/mlx5: Add support for drop action in DV steering")
Link: https://lore.kernel.org/r/20210318135123.680759-1-leon@kernel.org
Reviewed-by: Mark Bloch <markb@nvidia.com>
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/fs.c