Re: [PATCH v3 8/9] IB/mlx5: Add helper mlx5_ib_post_send_wait

2016-10-26 Thread Leon Romanovsky
On Wed, Oct 26, 2016 at 01:31:13PM +0530, Binoy Jayan wrote: > Clean up the following common code (to post a list of work requests to the > send queue of the specified QP) at various places and add a helper function > 'mlx5_ib_post_send_wait' to implement the same. > > - Initialize 'mlx5_ib_umr_co

Re: [PATCH v3 8/9] IB/mlx5: Add helper mlx5_ib_post_send_wait

2016-10-26 Thread Arnd Bergmann
On Wednesday, October 26, 2016 1:31:13 PM CEST Binoy Jayan wrote: > +static inline int mlx5_ib_post_send_wait(struct mlx5_ib_dev *dev, > +struct mlx5_umr_wr *umrwr) > +{ > + struct umr_common *umrc = &dev->umrc; > + struct ib_send_wr *bad; > +

[PATCH v3 8/9] IB/mlx5: Add helper mlx5_ib_post_send_wait

2016-10-26 Thread Binoy Jayan
Clean up the following common code (to post a list of work requests to the send queue of the specified QP) at various places and add a helper function 'mlx5_ib_post_send_wait' to implement the same. - Initialize 'mlx5_ib_umr_context' on stack - Assign "mlx5_umr_wr:wr:wr_cqe to umr_context.cqe -