OSDN Git Service

net: TX_RING and packet mmap
authorJohann Baudy <johann.baudy@gnu-log.net>
Tue, 19 May 2009 05:11:22 +0000 (22:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2009 05:11:22 +0000 (22:11 -0700)
commit69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1
tree24920f17ea435627978af9d5fe0e99763bf6a533
parentf67f34084914144de55c785163d047d5d8dddd2d
net: TX_RING and packet mmap

New packet socket feature that makes packet socket more efficient for
transmission.

- It reduces number of system call through a PACKET_TX_RING mechanism,
  based on PACKET_RX_RING (Circular buffer allocated in kernel space
  which is mmapped from user space).

- It minimizes CPU copy using fragmented SKB (almost zero copy).

Signed-off-by: Johann Baudy <johann.baudy@gnu-log.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/packet_mmap.txt
include/linux/if_packet.h
include/linux/skbuff.h
net/packet/af_packet.c