virtio: optimize Tx enqueue
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 4 Mar 2016 18:19:21 +0000 (10:19 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:35 +0000 (19:05 +0100)
commit17cbf09fe19c5400175c98234b25887a004b1a61
tree7540edc6ec3b4a957bca29280afed0d32a43d1d7
parentdd856dfcb9e740467a390c6f06f1a329e944eb28
virtio: optimize Tx enqueue

All the error checks in virtqueue_enqueue_xmit are already done
by the caller. Therefore they can be removed to improve performance.

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