From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sagi Grimberg Subject: Re: RDMA/CM and multiple QPs Date: Thu, 10 Sep 2015 16:52:18 +0300 Message-ID: <55F18B12.4050703@dev.mellanox.co.il> References: <20150906064550.GA30683@infradead.org> <55EED54B.7090608@dev.mellanox.co.il> <20150908131407.GB5316@infradead.org> <55F15269.2060200@dev.mellanox.co.il> <20150910132927.GA6440@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150910132927.GA6440-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Christoph Hellwig Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 9/10/2015 4:29 PM, Christoph Hellwig wrote: > On Thu, Sep 10, 2015 at 12:50:33PM +0300, Sagi Grimberg wrote: >>> What I'm more interested in is a way to tell the CM that I only >>> want routes that are using this ib_device that I got from the first >>> lookup as all others are useless for me. >>> >> >> I'm not sure I understand what you are aiming for? if you connect to >> a single address multiple times you will get the same device because >> it is the same route right? > > In testing I do get the same all the time, but I don't see anything that > gurantees that in code or documentation. I think it depends on the routing table. > Think about the case where the routing changes between the calls, > or we're using multipath TCP for example. That indeed can happen, in fact, if a bond changes its primary iface you can see different devices. But I don't think you should support that anyway. Just fail the session if you see different devices. I don't think that forcing the CM to a single device would help you as they will probably fail anyway. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html