Re: [PATCH net-next v2 5/5] af_packet: Use virtio_net_hdr_from_skb() directly.

2016-11-19 Thread David Miller
From: Jarno Rajahalme Date: Fri, 18 Nov 2016 15:40:42 -0800 > 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

[PATCH net-next v2 5/5] af_packet: Use virtio_net_hdr_from_skb() directly.

2016-11-18 Thread Jarno Rajahalme
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.