net/mlx5: fix legacy non-inline multi-packet performance
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Wed, 27 Nov 2019 12:33:12 +0000 (12:33 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Nov 2019 15:25:11 +0000 (16:25 +0100)
commit57725162f05dfb9f81fa3bae76018488083f9493
tree0eee4c6955083f65b4ed12b24a08971378d520b2
parenta0865f6f074880a2270f937d385070d1ae726bdf
net/mlx5: fix legacy non-inline multi-packet performance

The legacy multi-packet write is the feature allowing to
put multiple packets into one transmitting descriptor,
this feature is supported by only NIC ConnectX-4LX.
The number of packets should be limited to provide
optimal size descriptor and better performance.

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_prm.h
drivers/net/mlx5/mlx5_rxtx.c