netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* zero copy with PACKET_MMAP
@ 2014-02-27  6:40 ratheesh kannoth
  2014-02-27  9:58 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: ratheesh kannoth @ 2014-02-27  6:40 UTC (permalink / raw)
  To: netdev, linux-net

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zero copy with PACKET_MMAP
  2014-02-27  6:40 zero copy with PACKET_MMAP ratheesh kannoth
@ 2014-02-27  9:58 ` Daniel Borkmann
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2014-02-27  9:58 UTC (permalink / raw)
  To: ratheesh kannoth; +Cc: netdev, linux-net

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-27  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27  6:40 zero copy with PACKET_MMAP ratheesh kannoth
2014-02-27  9:58 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).