net/virtio: optimize Tx enqueue for packed ring
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 19 Feb 2019 10:59:51 +0000 (18:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Feb 2019 13:39:49 +0000 (14:39 +0100)
commit4905ed3a523ff6d55d646132045611616dfbeeaa
treeaccf791a7dd7e8f11b01eda1693caf6e99eec16e
parentb92f1429a66fb1b9906305eb241aeff9a44ac06e
net/virtio: optimize Tx enqueue for packed ring

This patch introduces an optimized enqueue function in packed
ring for the case that virtio net header can be prepended to
the unchained mbuf.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c