{IB/net}/mlx5: Simplify don't trap code
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 4 May 2020 05:30:09 +0000 (08:30 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 13 May 2020 15:56:18 +0000 (18:56 +0300)
commit14c129e30152f7d74c8b25ec06ae742f4291e166
tree7207b5a934b381374700fdf9aa8ba0b42a278f54
parentb6ca09cb156d349e6fdde8a8466ec15b902d1419
{IB/net}/mlx5: Simplify don't trap code

The fs_core already supports creation of rules with multiple
actions/destinations. Refactor fs_core to handle the case
when don't trap rule is created with destination. Adapt the
calling code in the driver.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c