]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: credit-leakage fixup on vlan_mac_del_all
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 23 Jan 2012 07:31:51 +0000 (07:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2012 18:58:18 +0000 (13:58 -0500)
commit8523bd2d7e19e6f7cb0514cf1077dd73b4ba7c2c
tree73772b7a40203946b805df8904a5e95c9152cf54
parent4536cd130155d97c21358cff4a74a4eadac8219d
bnx2x: credit-leakage fixup on vlan_mac_del_all

Upon insertion of elements into the execution queue, it is validated
that there are enough credits to support additional vlan-macs,
and the credits are consumed. However, when removing a pending
command in `bnx2x_vland_mac_del_all' the consumed credits are not
released, which might cause leakage and eventually the inability to
add new vlan-macs in certain scenarios.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h