]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/mlx5: Support flow counters offset for bulk counters
authorYevgeny Kliteynik <kliteyn@mellanox.com>
Sun, 3 Nov 2019 14:07:23 +0000 (16:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Nov 2019 19:42:36 +0000 (15:42 -0400)
commit208d70f562e563226df178ff8f969364972e9e99
tree3f43d9ecaec1aba3652adaf563ff39877093329d
parente26e7b88f6b7482cbff633c6fc9eaee3ecbd41b1
IB/mlx5: Support flow counters offset for bulk counters

Add support for flow steering counters action with a non-base counter
ID (offset) for bulk counters.

When creating a flow counter object, save the bulk value.  This value is
used when a flow action with a non-base counter ID is requested - to
validate that the required offset is in the range of the allocated bulk.

Link: https://lore.kernel.org/r/20191103140723.77411-1-leon@kernel.org
Signed-off-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c
drivers/infiniband/hw/mlx5/flow.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/uapi/rdma/mlx5_user_ioctl_cmds.h