On 04/05/2018 07:03 PM, Jason Gunthorpe wrote: > On Thu, Apr 05, 2018 at 06:34:44PM +0200, Nicolas Morey-Chaisemartin wrote: >> For ibstat, I don't think it is calling umad_open_port. It's only >> call to umad are umad_init, umad_get_cas_names, umad_get_ca, >> umad_get_ca_portguid and it doesn't seem like any of these call >> umad_open_port. The failure from ibstat is due to umad_init which >> fails because there is no /sys/class/infiniband_mad/abi_version as >> we only have RoCE hw and the ib_umad module is not automatically >> loaded. > Ooooh I see now. > > Yes, this is structured badly.. We should make umad_init into a NOP > and learn the abi_version only when we need it. > > How about this? I'll give it a try tomorrow morning but I like the idea. Nicolas -- 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