> It is used by the new ib_qib driver to expose the SL to VL table > since the user level MPI library (libpsm) constructs packets including > the IB header. After the driver calls ib_register_device(), > it calls device_create_file() to create the files in > /sys/class/infiniband/qib0/. Then it uses struct ib_device->port_list > to get the pointer to ib_port to add a directory similar to "gids" > and "pkeys" for each SL.
Hmm, maybe we should just add a vls directory with sl0 ... sl15 or something like that in generic code? I don't see why this needs to be driver-specific code. > Yes, this is what I'm working on. > The patch is the only change outside of the hw/qib/ directory. > Do you want to see a preview of the sysfs code? I think the earlier you can post the whole driver, the sooner you'll get it upstream. - R. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html