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)
commit460a25cdaef1a2b6b8e14e371d868aa91b0e72e8
tree73772b7a40203946b805df8904a5e95c9152cf54
parent4ec7ac1203bcf21f5e3d977c9818b1a56c9ef40d
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