]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita038902b2586c3807114bcb5032717926fcb1ea0
tree460a48316313637a1a97df94864d5909a20496fc
parent92444e9afc72bc7f63ab2bdc981a6806fc9a6dca
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]