RE: [PATCHv3 infiniband-diags] iblinkinfo.c: Close additional file descriptor in advance

2015-08-02 Thread Weiny, Ira
Additional file descriptor for SMP MADs should be closed before running ibnd_discover_fabric() to avoid parallel usage of two SMP file descriptors Signed-off-by: Vladimir Koushnir vladim...@mellanox.com Signed-off-by: Hal Rosenstock h...@mellanox.com Thanks applied, Ira -- To

Re: [PATCH 12/22] IB/iser: Introduce iser_reg_ops

2015-08-02 Thread Sagi Grimberg
On 7/30/2015 8:25 PM, Jason Gunthorpe wrote: On Thu, Jul 30, 2015 at 10:05:53AM -0500, Steve Wise wrote: +int iser_assign_reg_ops(struct iser_device *device) +{ + struct ib_device_attr *dev_attr = device-dev_attr; + + /* Assign function handles - based on FMR support */ + if

Re: [PATCH for-next V7 00/10] Move RoCE GID management to IB/Core

2015-08-02 Thread Matan Barak
On 8/2/2015 12:48 AM, Or Gerlitz wrote: On Sat, Aug 1, 2015 at 1:01 AM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Sat, Aug 01, 2015 at 12:24:23AM +0300, Or Gerlitz wrote: addressed in incremental patch, as Doug suggested. Jason, it's wrong to send developers again and again

Re: [PATCH 20/22] IB/iser: Support up to 8MB data transfer in a single command

2015-08-02 Thread Sagi Grimberg
+static void +iser_calc_scsi_params(struct iser_conn *iser_conn, + unsigned int max_sectors) +{ +struct iser_device *device = iser_conn-ib_conn.device; +unsigned short sg_tablesize, sup_sg_tablesize; + +sg_tablesize = DIV_ROUND_UP(max_sectors * 512, SIZE_4K); +

Re: [PATCH v2 01/12] IB/core: Guarantee that a local_dma_lkey is available

2015-08-02 Thread Haggai Eran
On 31/07/2015 02:22, Jason Gunthorpe wrote: int ib_dealloc_pd(struct ib_pd *pd) { + if (pd-local_mr) { + if (ib_dereg_mr(pd-local_mr)) + return -EBUSY; + pd-local_mr = NULL; + } + It looks like ib_uverbs_alloc_pd calls