summaryrefslogtreecommitdiff
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2016-02-04 02:02:17 +0300
committerDavid S. Miller <davem@davemloft.net>2016-02-09 14:43:50 +0300
commit1d036d25e5609ba73fee6a88db01c306b140d512 (patch)
tree6932e66c41212dcbb6f15a438a3a57af401e57c5 /fs/seq_file.c
parent8d39b4a6b83c141acaf0b5e8f90fd5e67721ff90 (diff)
downloadlinux-1d036d25e5609ba73fee6a88db01c306b140d512.tar.xz
packet: tpacket_snd gso and checksum offload
Support socket option PACKET_VNET_HDR together with PACKET_TX_RING. When enabled, a struct virtio_net_hdr is expected to precede the data in the ring. The vnet option must be set before the ring is created. The implementation reuses the existing skb_copy_bits code that is used when dev->hard_header_len is non-zero. Move this ll_header check to before the skb alloc and combine it with a test for vnet_hdr->hdr_len. Allocate and copy the max of the two. Verified with test program at github.com/wdebruij/kerneltools/blob/master/tests/psock_txring_vnet.c Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/seq_file.c')
0 files changed, 0 insertions, 0 deletions