IB/mlx5: Add drop flow steering rule support
authorSlava Shwartsman <slavash@mellanox.com>
Mon, 3 Apr 2017 10:13:52 +0000 (13:13 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Apr 2017 16:29:31 +0000 (12:29 -0400)
commita22ed86cff363b2fdcdcd70e2412d8fc14ce905f
tree82d0f195a86a9d2d0ad0dbc61be0ffdc700417b7
parent483a3966b570529a910dc2a02deac0036e642309
IB/mlx5: Add drop flow steering rule support

A drop rule is described by an action drop and no destination.
If a user specified IB_FLOW_SPEC_ACTION_DROP then set the action
to MLX5_FLOW_CONTEXT_ACTION_DROP and clear the destination.

Signed-off-by: Slava Shwartsman <slavash@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c