virtio: fix Rx mbuf initialization
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 4 Dec 2015 01:12:53 +0000 (17:12 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 00:03:12 +0000 (01:03 +0100)
commitc21835fab8efc40dc180a4add29c5adf14bdfebf
treef41973b3858bb77e0f0bd84a941fa8b8471ffacc
parent6c6a6e337d482e0d60e66d9e688600a0a250b409
virtio: fix Rx mbuf initialization

The virtio driver was not initializing all the fields in
the receive mbuf. This would cause bugs where previous usage
of mbuf would leave stale TCI and offload flags.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_rxtx.c