diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2019-11-18 12:41:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-29 12:07:32 +0300 |
commit | 0663f57269e39647e13da01bc64a774300c78b98 (patch) | |
tree | 9b7aade8f14e4b3aa2ff8598174064346018386d /net/core | |
parent | 8c1251a229cd0106b30b404a92055fe4f3b35224 (diff) | |
download | linux-0663f57269e39647e13da01bc64a774300c78b98.tar.xz |
net/mlx4_en: Fix wrong limitation for number of TX rings
[ Upstream commit 2744bf42680f64ebf2ee8a00354897857c073331 ]
XDP_TX rings should not be limited by max_num_tx_rings_p_up.
To make sure total number of TX rings never exceed MAX_TX_RINGS,
add similar check in mlx4_en_alloc_tx_queue_per_tc(), where
a new value is assigned for num_up.
Fixes: 7e1dc5e926d5 ("net/mlx4_en: Limit the number of TX rings")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions