[<prev] [next>] [day] [month] [year] [list]
Message-ID: <a967d7d00712281654i9de6b31if34a341fcd618e8a@mail.gmail.com>
Date: Fri, 28 Dec 2007 16:54:23 -0800
From: "Keyur Chudgar" <kchudgar.linux@...il.com>
To: netdev@...r.kernel.org
Subject: Fwd: skbuff data pointer alignment requirement
---------- Forwarded message ----------
From: Keyur Chudgar <kchudgar.linux@...il.com>
Date: Dec 28, 2007 4:53 PM
Subject: Re: skbuff data pointer alignment requirement
To: Jarek Poplawski <jarkao2@...il.com>
Hi Jarek,
> Do you mean hardware requirements of an architecture or a specific driver?
I meant any hardware requirements of an architecture.
> So, if you have more than one network card, is it needed by all of them,
> while other (not network) drivers are happy with default allocations?
Yes. So, anything related to skbuff data block, will need specific alignment
requirements, while others (non-network drivers) will work as default.
Thanks,
- Keyur
On Dec 22, 2007 3:00 AM, Jarek Poplawski <jarkao2@...il.com> wrote:
> Keyur Chudgar wrote, On 12/21/2007 02:12 AM:
> ...
>
> > If some hardware requirements, for example is, they need to have 256
> > bytes aligned address for them to do the DMA, no matter what the
> > packet size is. In this kind of cases, can you guide me what should I
> > do? Is there any way already in Linux I can do this?
>
> ...
>
> > In the above specified situation, I can define SKB_ADDR_MIN_ALIGN =
> > 256 in my Makefile or I don't define it at all if I am okay with
> > default alignment size.
>
> Do you mean hardware requirements of an architecture or a specific driver?
> So, if you have more than one network card, is it needed by all of them,
> while other (not network) drivers are happy with default allocations?
>
> Regards,
> Jarek P.
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists