]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit37c3491ba40c44cfc629eac0698f8cc763a9616a
tree72c6046852c49a8f66cde7752e88e3b0e531dd78
parent362c14632e2855aef4c6de1b98c276c691f1f47e
bnx2x: Fix logic to get total no. of PFs per engine

BugLink: https://bugs.launchpad.net/bugs/1861929
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h