[openib-general] Re: [PATCH] IPoIB: Add API to retrieve ib device, port, and pkey

Sean Hefty mshefty at ichips.intel.com
Thu Oct 6 12:08:21 PDT 2005


Roland Dreier wrote:
>     Sean> Is it possible to retrieve the pkey using
>     Sean> net_device->class_dev?
> 
> Maybe, but even more direct would be taking it from net_device->broadcast.

Okay - this is starting to make more sense to me now:

	priv->dev->broadcast[8] = priv->pkey >> 8;
	priv->dev->broadcast[9] = priv->pkey & 0xff;

I assume that the broadcast address is well defined, and there's no issue 
reading it from there?  If so, then I think it's a simple change to addr.c to 
extract it.

- Sean



More information about the general mailing list