Re: [PATCH v1 05/12] IB/cm: Share listening CM IDs

2015-07-14 Thread Haggai Eran
On 13/07/2015 20:48, Jason Gunthorpe wrote: On Mon, Jun 22, 2015 at 03:42:34PM +0300, Haggai Eran wrote: spin_lock_irq(cm.lock); +if (--cm_id_priv-listen_sharecount 0) { +/* The id is still shared. */ +

Re: [PATCH v1 05/12] IB/cm: Share listening CM IDs

2015-07-14 Thread Jason Gunthorpe
On Tue, Jul 14, 2015 at 11:45:15AM +0300, Haggai Eran wrote: Reviewed-By: Jason Gunthorpe jguntho...@obsidianresearch.com Thanks. Can I add it with the modifications above? Yep Jason -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH v1 05/12] IB/cm: Share listening CM IDs

2015-07-13 Thread Jason Gunthorpe
On Mon, Jun 22, 2015 at 03:42:34PM +0300, Haggai Eran wrote: spin_lock_irq(cm.lock); + if (--cm_id_priv-listen_sharecount 0) { + /* The id is still shared. */ + atomic_dec(cm_id_priv-refcount); Nit: This looks very strange not

[PATCH v1 05/12] IB/cm: Share listening CM IDs

2015-06-22 Thread Haggai Eran
Enabling network namespaces for RDMA CM will allow processes on different namespaces to listen on the same port. In order to leave namespace support out of the CM layer, this requires that multiple RDMA CM IDs will be able to share a single CM ID. This patch adds infrastructure to retrieve an