packet: use common code for virtio_net_hdr and skb GSO conversion
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Wed, 8 Jun 2016 13:09:22 +0000 (16:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:03:56 +0000 (23:03 -0700)
commit1276f24eeef207e5572649d069ba1b531b2e2c3a
treea5ff31fcdaf90aeef679b5ca193aa8c84d25f428
parente858fae2b0b8f41f0bed2cdffde25e7c97da38a7
packet: use common code for virtio_net_hdr and skb GSO conversion

Replace open coded conversion between virtio_net_hdr to skb GSO info with
virtio_net_hdr_from_skb

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c