Re: [PATCH rdma-next v2] IB/mlx5: Support flow counters offset for bulk counters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 03, 2019 at 04:07:23PM +0200, Leon Romanovsky wrote:
> From: Yevgeny Kliteynik <kliteyn@xxxxxxxxxxxx>
> 
> 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.
> 
> Signed-off-by: Yevgeny Kliteynik <kliteyn@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> Reviewed-by: Mark Bloch <markb@xxxxxxxxxxxx>
> ---
>  Changelog
>  v1->v2: https://lore.kernel.org/linux-rdma/20191029155020.20792-1-leon@xxxxxxxxxx
>  * Fixed mlx5_ib_devx_is_flow_counter() logic
>  v0 -> v1: https://lore.kernel.org/linux-rdma/20191029055916.7322-1-leon@xxxxxxxxxx
>  * Change ffs to multiply bitmap
>  * Changed uint32_t to be u32
>  * Added offset to mlx5_ib_devx_is_flow_counter()
> ---
>  drivers/infiniband/hw/mlx5/devx.c        | 15 +++++++++++-
>  drivers/infiniband/hw/mlx5/flow.c        | 29 ++++++++++++++++++++++--
>  drivers/infiniband/hw/mlx5/mlx5_ib.h     |  2 +-
>  include/uapi/rdma/mlx5_user_ioctl_cmds.h |  1 +
>  4 files changed, 43 insertions(+), 4 deletions(-)

Applied to for-next

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux