zero copy with PACKET_MMAP

2 messages, 2 authors, 2014-02-27 · open the first message on its own page

zero copy with PACKET_MMAP

From: ratheesh kannoth <hidden>
Date: 2014-02-27 06:40:06

Hi ,

The link

https://www.kernel.org/doc/Documentation/networking/packet_mmap.txt
talks about  achieving zero copy. But i find a deep  packet copy ( of
length snaplen= skb->len )  here
http://lxr.free-electrons.com/source/net/packet/af_packet.c#L1841.

Is there anything missing/wrong in my understanding ?


Thanks,
Ratheesh

Re: zero copy with PACKET_MMAP

From: Daniel Borkmann <hidden>
Date: 2014-02-27 09:58:34

On 02/27/2014 07:40 AM, ratheesh kannoth wrote:
...
https://www.kernel.org/doc/Documentation/networking/packet_mmap.txt
talks about  achieving zero copy. But i find a deep  packet copy ( of
length snaplen= skb->len )  here
http://lxr.free-electrons.com/source/net/packet/af_packet.c#L1841.

Is there anything missing/wrong in my understanding ?
The zero-copy is between user and kernel space.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help