]> git.baikalelectronics.ru Git - kernel.git/commit
packet: move vnet_hdr code to helper functions
authorWillem de Bruijn <willemb@google.com>
Wed, 3 Feb 2016 23:02:14 +0000 (18:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2016 11:43:50 +0000 (06:43 -0500)
commit1f91a0076a61a6f45fbc1d48e97df91dd4a9aaf0
tree50bc54692d82a05713077b7bd626f792122daf80
parent665d3103010007ba28350d55768668ff9589d572
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>
net/packet/af_packet.c