virtio_net: introduce virtio_net_hdr_{from,to}_skb
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Wed, 8 Jun 2016 13:09:18 +0000 (16:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:03:55 +0000 (23:03 -0700)
commitfd2a0437dc33b6425cabf74cc7fc7fdba6d5903b
tree460a48316313637a1a97df94864d5909a20496fc
parent678ece30226ac05e95768d5f70db53a475569d37
virtio_net: introduce virtio_net_hdr_{from,to}_skb

The code for conversion between virtio_net_hdr and skb GSO info is
duplicated at several places. Let's put it to a common place to allow
reuse.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/virtio_net.h [new file with mode: 0644]