[openib-general] [PATCH] netdevice.h: Add RDMA privatepointer to the net_device structure

Sean Hefty sean.hefty at intel.com
Mon Oct 3 20:54:26 PDT 2005


>> Moreover there was discussion about getting this data from the CM REQ
>> private data. So, what is the exact rationale for adding this to the
>> net_device structure?
>
>To get at the ib_device, port, and PKey which are needed for a
>subsequent SA path record request.

We should be able to retrieve the device and port through GID matching.  I'm not
sure how safe it is to access the device pointer in the case of device removal.
Reading the device pointer from the rdma_ptr would need to be synchronized with
ipoib's device removal handling, but maybe that's handled by the reference on
the net_device...?

Does ipoib create a device per pkey associated with a port?  Is it possible for
a user to get at a pkey other than the one at index 0 given only an IP address?

- Sean




More information about the general mailing list