diff options
author | Willem de Bruijn <willemb@google.com> | 2016-02-04 02:02:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-09 14:43:50 +0300 |
commit | 16cc1400456a4d5d6df9f5e7f1b2c7cb8c50404b (patch) | |
tree | 50bc54692d82a05713077b7bd626f792122daf80 /init | |
parent | 5ee14e6d336f1daacf5ba73e831029c5ab7ae329 (diff) | |
download | linux-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