]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tpacket-gso-csum-offload'
authorDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2016 11:43:59 +0000 (06:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2016 11:43:59 +0000 (06:43 -0500)
commit762cf9b4d9ad966807bce515282b5387da82b89a
tree6932e66c41212dcbb6f15a438a3a57af401e57c5
parent665d3103010007ba28350d55768668ff9589d572
parent31beca1bcbc20d1e9f67a8000393aece01132f31
Merge branch 'tpacket-gso-csum-offload'

Willem de Bruijn says:

====================
packet: tpacket gso and csum offload

Extend PACKET_VNET_HDR socket option support to packet sockets with
memory mapped rings.

Patches 2 and 4 add support to tpacket_rcv and tpacket_snd.

Patch 1 prepares for this by moving the relevant virtio_net_hdr
logic out of packet_snd and packet_rcv into helper functions.

GSO transmission requires all headers in the skb linear section.
Patch 3 moves parsing of tx_ring slot headers before skb allocation
to enable allocation with sufficient linear size.

Changes
  v1->v2:
    - fix bounds checks:
      - subtract sizeof(vnet_hdr) before comparing tp_len to size_max
      - compare tp_len to size_max also with GSO, just do not truncate to MTU
====================

Signed-off-by: David S. Miller <davem@davemloft.net>