Networking Forums

Networking Forums > Computer Networking > Linux Networking > Network buffers

Reply
Thread Tools Display Modes

Network buffers

 
 
Shobha
Guest
Posts: n/a

 
      04-17-2006, 01:24 PM
Hi All,

I have a unique requirement for a ethernet device. We need to DMA
packets from the device which has a header associated along with the
ethernet frame. I need a efficient mechanism to pass this packet to the
user-space. The user-space process will process the header and provide
the ifindex of the interface.

I was thinking of a circular buffer between the kernel and user space.
But the issue is that after the user-space provides the map from the
header to the ifindex, I need that information back in the
kernel(preferably using the same buffer). I currently have the
mapping(header->ifindex) only in user space and don't want to replicate
the mapping in the kernel space.

Is there a better mechanism to solve this?

Thanks,

Shobha.
 
Reply With Quote
 
 
 
 
kumar
Guest
Posts: n/a

 
      04-19-2006, 08:09 AM
There is mechanism for filtering packets of icmp.
But you can't access kernel space. You have
to read the packets from kernel space to userspace.
If you can find mechanism like filtering of icmp then
ok otherwise stick to your approach.

 
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
Purging socket send buffers Markus Linux Networking 1 06-20-2007 07:17 PM
problem in collecting data spread over multiple buffers Sagar Linux Networking 0 07-05-2006 05:42 AM
How to find the actual memory usage of socket buffers Karthik Nandyal Linux Networking 0 11-11-2004 06:36 PM
Red Hat - How do I figure out and change TCP send/receive buffers? John Davis Linux Networking 2 08-11-2003 12:58 PM



1 2 3 4 5 6 7 8 9 10 11