net/mlx5: fix Tx descriptor with VLAN insertions
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Tue, 3 Sep 2019 12:35:05 +0000 (12:35 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Sep 2019 08:19:41 +0000 (10:19 +0200)
commit7fd9ffe9508cd2bb50f0dab489ee37e1c180b555
tree15e39f674a9e796b2556014e3871b1d86c179414
parentb0f66a68ca7448296fd598e6e100ad278e417ed6
net/mlx5: fix Tx descriptor with VLAN insertions

If VLAN tag insertion transmit offload is engaged
(DEV_TX_OFFLOAD_VLAN_INSERT in tx queue configuration is set)
the transmit descriptor may be built with wrong format, due to
packet length is not adjusted. Also, the ring buffer wrap up
is not handled correctly.

Fixes: 18a1c20044c0 ("net/mlx5: implement Tx burst template")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c