]> git.baikalelectronics.ru Git - kernel.git/commit
af_packet: Use virtio_net_hdr_to_skb().
authorJarno Rajahalme <jarno@ovn.org>
Fri, 18 Nov 2016 23:40:41 +0000 (15:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Nov 2016 15:37:03 +0000 (10:37 -0500)
commit0982395c958f6e229c3c48d52d26e8e79c5d65b9
tree5d64ea849e655fd6a04e6e30619c08b8c0382567
parent804862b42611b90fb01e4c7c847f76a4af91d7be
af_packet: Use virtio_net_hdr_to_skb().

Use the common virtio_net_hdr_to_skb() instead of open coding it.
Other call sites were changed by commit 01eda2e5e8, but this one was
missed, maybe because it is split in two parts of the source code.

Interim comparisons of 'vnet_hdr->gso_type' still work as both the
vnet_hdr and skb notion of gso_type is zero when there is no gso.

Fixes: 01eda2e5e8 ("virtio_net: introduce virtio_net_hdr_{from,to}_skb")
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c