Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-07-2008, 01:38 PM   #1
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
How to align the sk_buff 'data' field on an odd word address?


I'm using linux on a blackfin BF537E rev 0.2 DSP from analog devices.
Due to a hardware bug, ethernet Tx can't use the DMA to get data from memory if the "data" field of the sk_buff structure isn't aligned on an odd word address.

So, is there a trick to allocate the datagram I give to the "sendto" function on a odd word address?

But I'm not sure it will be sufficient since I'm not able to connect the device "xmit" function (where the sk_buff data field need to be aligned) and the "sock_sendmsg" which is, I hope, my kernel entry point... If some network driver guru can point to me where's the sk_buff data filed is connected to my user-side datagram address, I'm working in MULTICAST.

Thanks for any help.


data, skbuff

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access mac address using sk_buff dogslayer Programming 4 04-20-2006 10:04 PM
how to obtain mac address using sk_buff??? dogslayer Linux - Networking 2 04-14-2006 08:22 AM
addding data to sk_buff shrishailnk Linux - Networking 1 04-10-2006 01:40 AM

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration