]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3cedbd385348780a57b15ee33abb116d59f4ac1
tree24920f17ea435627978af9d5fe0e99763bf6a533
parent7c282c79cfbfc52ba0f322d6281a9ef46effba45
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