]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Prevent over-usage of vlan credits by PF
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 27 Jul 2016 11:45:24 +0000 (14:45 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 04:59:26 +0000 (20:59 -0800)
commitb09124558a1ac88dea040937deffed98b6d0feb0
tree1ab5d27853fd1007222fab4904b55e44fd7835fa
parent4e4ebd5278901b00d6ad865ad56ba339fa8233c1
qed: Prevent over-usage of vlan credits by PF

Orabug: 25477939

Each PF/VF has a limited number of vlan filters for
configuration purposes; This information is passed to qede
and is used to prevent over-usage - once a vlan is to be
configured and no filter credit is available, the driver
would switch into working in vlan-promisc mode.

Problem is the credit pool is shared by both PFs and VFs,
and currently PFs aren't deducting the filters that are
reserved for their VFs from their quota, which may lead
to some vlan filters failing unknowingly due to lack of credit.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 25eb8d46e4a0ad7aea11e73e47c20c0e400e57f1)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_l2.c