Network buffers

This is a discussion on Network buffers within the Linux Networking forums, part of the Linux Forums category; Hi All, I have a unique requirement for a ethernet device. We need to DMA packets from the device which ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2006
Shobha
 
Posts: n/a
Default Network buffers

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
  #2 (permalink)  
Old 04-19-2006
kumar
 
Posts: n/a
Default Re: Network buffers

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 Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0