]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/mlx5: Add support for don't trap rules
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 7 Mar 2016 16:51:47 +0000 (18:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 10 Mar 2016 14:22:06 +0000 (09:22 -0500)
commit35d1901134e97cf95c0ab6ef70f5aead6cb34e9e
tree228c68726c6d68e06baefe3db846a8a912345cac
parentb3638e1a76648dbd482cc5a8f27eb6948cc3bc86
IB/mlx5: Add support for don't trap rules

Each bypass flow steering priority will be split into two priorities:
1. Priority for don't trap rules.
2. Priority for normal rules.

When user creates a flow using IB_FLOW_ATTR_FLAGS_DONT_TRAP flag, the
driver creates two flow rules, one used for receiving the traffic and
the other one for forwarding the packet to continue matching in lower
or equal priorities.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/linux/mlx5/device.h