summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2016-02-04 02:02:14 +0300
committerDavid S. Miller <davem@davemloft.net>2016-02-09 14:43:50 +0300
commit16cc1400456a4d5d6df9f5e7f1b2c7cb8c50404b (patch)
tree50bc54692d82a05713077b7bd626f792122daf80 /init
parent5ee14e6d336f1daacf5ba73e831029c5ab7ae329 (diff)
downloadlinux-16cc1400456a4d5d6df9f5e7f1b2c7cb8c50404b.tar.xz
packet: move vnet_hdr code to helper functions
packet_snd and packet_rcv support virtio net headers for GSO. Move this logic into helper functions to be able to reuse it in tpacket_snd and tpacket_rcv. This is a straighforward code move with one exception. Instead of creating and passing a separate gso_type variable, reuse vnet_hdr.gso_type after conversion from virtio to kernel gso type. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions