]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
bnx2x: Fix accounting of vlan resources among the PFs
authorManish Chopra <manishc@marvell.com>
Mon, 23 Dec 2019 18:23:09 +0000 (10:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 23:27:14 +0000 (15:27 -0800)
commit5cdc40c7820ff66c2271e0884bd8ee8f7cfd769b
tree4b1420a4862629a63d0964a1d1855dfe034f40fa
parent0444716a5dd563526e53ae686115987d5d4c249e
bnx2x: Fix accounting of vlan resources among the PFs

While testing max vlan configuration on the PF, firmware gets
assert as driver was configuring number of vlans more than what
is supported per port/engine, it was figured out that there is an
implicit vlan (hidden default vlan consuming hardware cam entry resource)
which is configured default for all the clients (PF/VFs) on client_init
ramrod by the adapter implicitly, so when allocating resources among the
PFs this implicit vlan should be considered or total vlan entries should
be reduced by one to accommodate that default/implicit vlan entry.

Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h