From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Steve Wise" Subject: RE: [PATCH rdma-next 01/10] IB/core: Add raw packet protocol Date: Mon, 28 Nov 2016 11:08:59 -0600 Message-ID: <05bd01d2499a$1c75f750$5561e5f0$@opengridcomputing.com> References: <1480258296-27032-1-git-send-email-leon@kernel.org> <1480258296-27032-2-git-send-email-leon@kernel.org> <20161128170056.GC28381@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20161128170056.GC28381-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> Content-Language: en-us Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: 'Jason Gunthorpe' , 'Leon Romanovsky' Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, 'Steve Wise' , 'Mike Marciniszyn' , 'Dennis Dalessandro' , 'Lijun Ou' , "'Wei Hu(Xavier)'" , 'Faisal Latif' , 'Yishai Hadas' , 'Selvin Xavier' , 'Devesh Sharma' , 'Mitesh Ahuja' , 'Christian Benvenuti' , 'Dave Goodell' , 'Moni Shoua' , 'Or Gerlitz' List-Id: linux-rdma@vger.kernel.org > > On Sun, Nov 27, 2016 at 04:51:27PM +0200, Leon Romanovsky wrote: > > > +static inline bool rdma_protocol_raw_packet(const struct ib_device *device, u8 > port_num) > > +{ > > + return device->port_immutable[port_num].core_cap_flags & > RDMA_CORE_CAP_PROT_RAW_PACKET; > > +} > > Does the mlx drivers really register ports with different capabilities > as the same ib_device? I'm not sure that should be allowed. > > I keep talking about how we need to get rid of the port_num in these > sorts of places because it makes no sense... > I agree. Requiring the port number has implications that ripple up into the rdma-rw api as well... -- 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