[PATCH v2 net-next] net/mlx4: Avoid wrong virtual mappings

2016-05-04 Thread Haggai Abramovsky
, but in case of failure roll back to work with fragmented memory. Signed-off-by: Haggai Abramovsky Signed-off-by: Yishai Hadas Reported-by: David Daney Tested-by: Sinan Kaya --- Changes from v1: - In set_kernel_sq_size() function definition, changed the type of the flag

Re: [PATCH net] net/mlx4: Avoid wrong virtual mappings

2016-04-27 Thread Haggai Abramovsky
On Wed, Apr 27, 2016 at 10:19 AM, Christoph Hellwig wrote: > Hi Haggai, > > I've taken a very quick look because I'm a little too busy this week, > but I failed to grasp the patch, as it seems to do a few too many > things. E.g. the whole wqe_shrink thing doesn't correspond to anything > in the d

[PATCH v1 net] net/mlx4: Avoid wrong virtual mappings

2016-04-27 Thread Haggai Abramovsky
, but in case of failure roll back to work with fragmented memory. Signed-off-by: Haggai Abramovsky Signed-off-by: Yishai Hadas Reported-by: David Daney Tested-by: Sinan Kaya --- Changes from v0: Fix indentation error raised by LeonR drivers/infiniband/hw/mlx4/qp.c

Re: [PATCH net] net/mlx4: Avoid wrong virtual mappings

2016-04-27 Thread Haggai Abramovsky
On Wed, Apr 27, 2016 at 9:32 AM, Leon Romanovsky wrote: > On Mon, Apr 25, 2016 at 04:34:47PM +0300, Haggai Abramovsky wrote: >> -int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, >> -struct mlx4_buf *buf, gfp_t gfp) >> +static int mlx4_bu

[PATCH net] net/mlx4: Avoid wrong virtual mappings

2016-04-25 Thread Haggai Abramovsky
, but in case of failure roll back to work with fragmented memory. Signed-off-by: Haggai Abramovsky Signed-off-by: Yishai Hadas Reported-by: David Daney Tested-by: Sinan Kaya --- drivers/infiniband/hw/mlx4/qp.c | 26 ++-- drivers/net/ethernet/mellanox/mlx4/alloc.c