Networking Forums

Networking Forums > Computer Networking > Linux Networking > problem in collecting data spread over multiple buffers

Reply
Thread Tools Display Modes

problem in collecting data spread over multiple buffers

 
 
Sagar
Guest
Posts: n/a

 
      07-05-2006, 05:42 AM
Hello,

I am writing an ethernet driver for cadence enhanced MAC in FE mode.
The ethernet controller is having limitation that out of one frame it
can copy only 512 bytes in one buffer.
Hence the the received frame is distributed over multiple buffers.
So any frame which is more than 512 bytes will be in buffer pointed by
next receive buffer queue descriptor.
I am using NAPI mode in which when I am collecting the frame spread
across multiple buffers and assign it to a single sk_buff handed over
to stack, the data gets corrupt. And stack rejects the packet. One
solution is to make receive buffer length 1536 bytes(jumbo frames) or
1518 bytes which is IEEE 802.2/3 standard. But the controller doesn't
accept the value greater than 512 and the allocated memory is wasted.
So what care should I take while collecting the data spread across
multiple buffers and sending to stack?


Thanks,
Sagar

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Receive buffers setting Chris Windows Networking 1 03-31-2010 08:33 PM
How to capture tcpdump data to simulate connections from multiple IPs? draghuram@gmail.com Linux Networking 3 06-24-2006 01:38 AM
Network buffers Shobha Linux Networking 1 04-19-2006 08:09 AM
Delay Spread Specs: ORiNOCO vs. Cisco (e.g.) c hore Wireless Internet 1 10-16-2004 05:11 AM
wireless collecting email works, internet does not rainer Wireless Internet 1 10-11-2003 01:10 PM



1 2 3 4 5 6 7 8 9 10 11