bnx2x: Fix logic to get total no. of PFs per engine
authorManish Chopra <manishc@marvell.com>
Wed, 11 Dec 2019 17:59:56 +0000 (09:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:17:15 +0000 (12:17 +0100)
commit133c0bab94376ec19f32814e490b0c8b011bb492
tree6238cc4bb6e80f19f9f59070e28d4e5913905a89
parent1c96c9f1470b0e3f4ed03f27faa3786104e8e010
bnx2x: Fix logic to get total no. of PFs per engine

[ Upstream commit ee699f89bdbaa19c399804504241b5c531b48888 ]

Driver doesn't calculate total number of PFs configured on a
given engine correctly which messed up resources in the PFs
loaded on that engine, leading driver to exceed configuration
of resources (like vlan filters etc.) beyond the limit per
engine, which ended up with asserts from the firmware.

Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h