net/mlx5: do not select legacy MPW implicitly
authorAlexander Kozyrev <akozyrev@mellanox.com>
Thu, 11 Jun 2020 17:42:00 +0000 (17:42 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:07 +0000 (19:21 +0200)
commita23d96ae59e21f7b0ada43d2757a726fc565005a
tree19b24d81bd81293b01277652ca4c4b9606f0bd1a
parent73bf9235e977239759f0da0e621d52b9263716c3
net/mlx5: do not select legacy MPW implicitly

The Legacy MPW (multi-packet write) should not be engaged implicitly.
We should exclude this function from a Tx burst routine selection
process unless it is requested specifically by setting the txq_mpw_en
devarg.  Exclude this function from the selection process the same way
it is done for the Enhanced MPW in the mlx5_select_tx_function()
routine.

Fixes: eb8121ab9dac ("net/mlx5: introduce Tx burst routine template")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c