net/virtio: use any layout for version 1.0
authorPierre Pfister <ppfister@cisco.com>
Wed, 30 Nov 2016 09:18:42 +0000 (09:18 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 17 Jan 2017 08:20:17 +0000 (09:20 +0100)
commit9edfedf5e45e3e35c13438c73c9903d07c8237c9
tree3d41080a57a94c70eb451824dce9dc8ffdf42908
parent8c33fc10f65d250cf84d9dcf2766dabd605a37b2
net/virtio: use any layout for version 1.0

Current virtio driver advertises VERSION_1 support,
but does not handle device's VERSION_1 support when
sending packets (it looks for ANY_LAYOUT feature,
which is absent).

This patch enables 'can_push' in tx path when VERSION_1
is advertised by the device.

This significantly improves small packets forwarding rate
towards devices advertising VERSION_1 feature.

Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_rxtx.c