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)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 26 Mar 2021 14:52:47 +0000 (11:52 -0300)
commitc73700806d4e430d182c2be069d230076818a99a
tree443203a068a7b788d2ebe5435dfcb2d440b66b0e
parent49695e95ceea08913e7355c9914a25ddffc504ba
RDMA/mlx5: Fix drop packet rule in egress table

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>
drivers/infiniband/hw/mlx5/fs.c