[PATCH rdma-next v1 11/13] IB/mlx5: Add flow counters binding support

2018-05-27 Thread Leon Romanovsky
From: Raed Salem Associates a counters with a flow when IB_FLOW_SPEC_ACTION_COUNT is part of the flow specifications. The counters user space placements of location and description (index, description) pairs are passed as private data of the counters flow specification. Reviewed-by: Yishai Hada

Re: [PATCH rdma-next v1 11/13] IB/mlx5: Add flow counters binding support

2018-05-28 Thread Jason Gunthorpe
On Sun, May 27, 2018 at 01:23:44PM +0300, Leon Romanovsky wrote: > + if (!mcounters->hw_cntrs_hndl) { > + mcounters->hw_cntrs_hndl = > + (void > *)mlx5_fc_create(to_mdev(ibcounters->device)->mdev, > +false); No unnec

Re: [PATCH rdma-next v1 11/13] IB/mlx5: Add flow counters binding support

2018-05-29 Thread Leon Romanovsky
On Mon, May 28, 2018 at 11:27:52AM -0600, Jason Gunthorpe wrote: > On Sun, May 27, 2018 at 01:23:44PM +0300, Leon Romanovsky wrote: > > > + if (!mcounters->hw_cntrs_hndl) { > > + mcounters->hw_cntrs_hndl = > > + (void > > *)mlx5_fc_create(to_mdev(ibcounters->device)->