diff options
author | Marina Varshaver <marinav@mellanox.com> | 2016-03-15 19:03:55 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-17 09:48:11 -0400 |
commit | fa6574cfa3a22ab33da16ff906b5f032dc0df565 (patch) | |
tree | b14ca8dcd997c96a0cbeec22f1bb05130e411e6d | |
parent | ba9b4ae0a9a3c5fe2faa1bcd84dd768fde34892d (diff) | |
download | libibverbs-fa6574cfa3a22ab33da16ff906b5f032dc0df565.tar.gz |
Add support for don't trap steering rule
Add an option to create a normal flow steering rule that doesn't trap
received packets, allowing them to match lower prioritized rules.
When the don't trap rule exists and matches a packet, the underlying HCA
should pass the packet to the rule's assigned QP(s). However, the HCA
will continue looking for other matches at lower priority rules, which
may be assigned to other QPs. This will let them get the traffic as
well.
Signed-off-by: Marina Varshaver <marinav@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | include/infiniband/verbs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h index 7f66480..bda31a8 100644 --- a/include/infiniband/verbs.h +++ b/include/infiniband/verbs.h @@ -841,7 +841,8 @@ struct ibv_ah { }; enum ibv_flow_flags { - IBV_FLOW_ATTR_FLAGS_ALLOW_LOOP_BACK = 1, + IBV_FLOW_ATTR_FLAGS_ALLOW_LOOP_BACK = 1 << 0, + IBV_FLOW_ATTR_FLAGS_DONT_TRAP = 1 << 1, }; enum ibv_flow_attr_type { |