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

Remove static function __packet_rcv_vnet(), which only called
virtio_net_hdr_from_skb() and BUG()ged out if an error code was
returned.  Instead, call virtio_net_hdr_from_skb() from the former
call sites of __packet_rcv_vnet() and actually use the error handling
code that is already there.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c