> > 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html