[openib-general] Re: [PATCH] sockaddr_ll change for IPoIB interface

Hal Rosenstock halr at voltaire.com
Fri Aug 12 07:45:24 PDT 2005


On Fri, 2005-08-12 at 10:32, Talpey, Thomas wrote:
> At 10:12 AM 8/12/2005, Hal Rosenstock wrote:
> >If sockaddr_ll struct is left alone, I think it may be a problem on the
> >receive side where the size of that struct is used.
> 
> Maybe. The receive side builds the incoming sockaddr_ll in the skb->cb.
> But that's 48 bytes and it goes off to your device's hard_header_parse
> to do so...
> 
> You sure you have hard_header_len and all the appropriate vectors
> set up properly? (netdevice.h)

Yes, this is done by ipoib_setup in ipoib_main.c which is called when an
IPoIB port is added as follows:

        dev = alloc_netdev((int) sizeof (struct ipoib_dev_priv), name,
                           ipoib_setup);

-- Hal




More information about the general mailing list