From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-next 01/10] IB/core: Add raw packet protocol Date: Wed, 30 Nov 2016 10:32:11 -0700 Message-ID: <20161130173211.GA9067@obsidianresearch.com> References: <1480258296-27032-2-git-send-email-leon@kernel.org> <20161128170056.GC28381@obsidianresearch.com> <05bd01d2499a$1c75f750$5561e5f0$@opengridcomputing.com> <5927e04b-42ec-52c1-88a3-456cc4409334@talpey.com> <20161130163949.GC24639@obsidianresearch.com> <20161130170830.GA17512@obsidianresearch.com> <1828884A29C6694DAF28B7E6B8A82373AB0BA190@ORSMSX109.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373AB0BA190-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Hefty, Sean" Cc: Liran Liss , Tom Talpey , Doug Ledford , Steve Wise , 'Leon Romanovsky' , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , 'Steve Wise' , "Marciniszyn, Mike" , "Dalessandro, Dennis" , 'Lijun Ou' , "'Wei Hu(Xavier)'" , "Latif, Faisal" , Yishai Hadas , 'Selvin Xavier' , 'Devesh Sharma' , 'Mitesh Ahuja' , 'Christian Benvenuti' , 'Dave Goodell' , Moni List-Id: linux-rdma@vger.kernel.org On Wed, Nov 30, 2016 at 05:25:18PM +0000, Hefty, Sean wrote: > > > - this doesn't change anything. Also, AHs are already > > > port-specific. So, I don't see any issue in this regard. > > > > The current scheme infers the protocol of the AH from the current > > configuration of the port, which is a crazy API when the port's > > protocol can change on the fly. > > Maybe the solution is to make the protocol selection explicit > throughout the APIs and associate it with a QP, rather than > attempting to list all transport protocols that a port can support. AH's are linked to a PD, not a QP.. If we had to do it again, a PD centric approach would be more sensible: // Create a PD on 'port' using ah format 'protocol' pd = ibv_pd_create(port, enum ah_type protocol); // Enable APM or resource sharing on the PD across two ports ibv_pd_add_port(pd, alt_port); And get rid of the multi-port ib_device concept entirely. Jason -- 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