Re: NET driver skb alignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>     I tripped over a feature in another OS that allowed aligning the
> network buffers to any ^2 boundary.
>     I have a driver that that would substantially simplify the code.
>
>     Is there any reason I can not ask for a read SKB that is
> sufficiently much larger than I need and then align it by altering the
> data pointer ?

If you mean receive side, I think it's related to IP header. Linux expects IP 
header be aligned to 16 byte. 2(padding) + 14(eth header).

>     It there a way I can persuade Linux to give me xmit skb's aligned as
> I want them ?

--
Borta SAHIN

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux