net/iavf: fix Tx threshold check
authorXiaoyun Li <xiaoyun.li@intel.com>
Thu, 22 Jul 2021 07:56:20 +0000 (15:56 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 25 Jul 2021 09:47:05 +0000 (11:47 +0200)
commited21e06e44ad7fe5dfa4b8ed713e29833a474fa9
treea6be56a21e5997ae80fc2f5efdd8d025a296d3ee
parent1e9221ae38dddb4abe75a7b3afaecbaa4b8e0523
net/iavf: fix Tx threshold check

Function check_tx_thresh is called with wrong parameter. If the
check fails, tx_queue_setup should return error not keep going.
This patch fixes above issues.

Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf_rxtx.c