net: qed: fix excessive QM ILT lines consumption
authorAlexander Lobakin <alobakin@marvell.com>
Tue, 23 Jun 2020 13:51:33 +0000 (16:51 +0300)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:36:59 +0000 (15:36 -0400)
commit7180c8fc4a03f8120f8ece1c165b797f1f752ec6
treec30cd4f871a0864492e01678db9a645de91505d8
parent32cf4ff4ec523a4551155978498512b186c47943
net: qed: fix excessive QM ILT lines consumption

[ Upstream commit d434d02f7e7c24c721365fd594ed781acb18e0da ]

This is likely a copy'n'paste mistake. The amount of ILT lines to
reserve for a single VF was being multiplied by the total VFs count.
This led to a huge redundancy in reservation and potential lines
drainouts.

Fixes: 1408cc1fa48c ("qed: Introduce VFs")
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_cxt.c