IB/core: Add support for flow counters
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:36 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:56 +0000 (07:33 +0300)
commit7eea23a5cd51a945700ad44c7ce585dd2a640dea
tree9646401b46c389d36f9cb4506847801335766cdb
parent59082a327d0145c69b419a0f5bed96b13c5e9ed4
IB/core: Add support for flow counters

A counters object could be attached to flow on creation by providing the
counter specification action.

General counters description which count packets and bytes are introduced,
downstream patches from this series will use them as part of flow counters
binding.

In addition, increase number of flow specifications supported layers to 10
upon adding count specification and for the previously added drop
specification.

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>
include/rdma/ib_verbs.h