diff options
author | Raed Salem <raeds@mellanox.com> | 2018-05-31 15:43:37 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2018-06-02 06:33:56 +0200 |
commit | b6ba4a9aa59fe99c6e9ca6ec941cd5f9823b0cae (patch) | |
tree | cc9a9ca9b3ec4615970a8a46b35b1096340cbf8b /include/uapi | |
parent | IB/core: Add support for flow counters (diff) | |
download | linux-b6ba4a9aa59fe99c6e9ca6ec941cd5f9823b0cae.tar.xz linux-b6ba4a9aa59fe99c6e9ca6ec941cd5f9823b0cae.zip |
IB/uverbs: Add support for flow counters
The struct ib_uverbs_flow_spec_action_count associates a counters object
with the flow.
Post this association the flow counters can be read via the counters
object.
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index 9be07394fdbe..f83e8ef6f056 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h @@ -998,6 +998,19 @@ struct ib_uverbs_flow_spec_action_handle { __u32 reserved1; }; +struct ib_uverbs_flow_spec_action_count { + union { + struct ib_uverbs_flow_spec_hdr hdr; + struct { + __u32 type; + __u16 size; + __u16 reserved; + }; + }; + __u32 handle; + __u32 reserved1; +}; + struct ib_uverbs_flow_tunnel_filter { __be32 tunnel_id; }; |