LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-07-2008, 12:38 PM   #1
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

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


Hello,

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.
 
  


Reply

Tags
data, skbuff



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 09:04 PM
how to obtain mac address using sk_buff??? dogslayer Linux - Networking 2 04-14-2006 07:22 AM
addding data to sk_buff shrishailnk Linux - Networking 1 04-10-2006 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:00 AM.

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