net/virtio: move VLAN tag insertion to Tx prepare
authorDilshod Urazov <dilshod.urazov@oktetlabs.ru>
Mon, 17 Jun 2019 11:31:38 +0000 (12:31 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit3f8fb604748bbf7d52122e6478b94311eb75b803
treed192de94cb8b3e0bce64876d1b27ea4bbf0e3ea4
parent00a5ea02e12fc1409901c0149ce87c28a286ea60
net/virtio: move VLAN tag insertion to Tx prepare

VLAN tag insertion should be in Tx prepare, not in Tx burst functions.
One of Tx prepare goals is to be able to do preparations in advance
(possibly on different CPU core) and then transmit it fast.
Also Tx prepare can report that a packet does not pass Tx offloads
check. E.g. has no enough headroom to insert VLAN header.

Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
Cc: stable@dpdk.org
Signed-off-by: Dilshod Urazov <dilshod.urazov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_rxtx.c