net/mlx5: fix Tx metadata for multi-segment packet
authorDekel Peled <dekelp@mellanox.com>
Wed, 30 Jan 2019 06:43:29 +0000 (08:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Feb 2019 11:55:38 +0000 (12:55 +0100)
commit7f4019d370f6edbd9d6ef26a9bc62442b0fd80a6
tree7f5ae6432f688351d2dea4dbbefff9d339b26d24
parentb13baac8d5ffb6b0b7a6ca0def884d3f1a82babb
net/mlx5: fix Tx metadata for multi-segment packet

Original patch implemented the use of match_metadata offload in the
different burst functions.
The concurrent use of match_metadata and multi_segs offloads was
not handled.

This patch updates function txq_scatter_v(), to pass metadata value
from mbuf to wqe, when indicated by offload flags.

Fixes: 6bd7fbd03c62 ("net/mlx5: support metadata as flow rule criteria")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_rxtx_vec_neon.h
drivers/net/mlx5/mlx5_rxtx_vec_sse.h