Re: [PATCH] IB/core: export struct ib_port

Roland Dreier
2009-11-11T20:52:02Z

> 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.