]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:15 +0000 (22:41 +0800)
commitd444f02a05adce8d2cfcc51cb763b3dcc2778e9b
treed7eaa9ee79319700507935d4ff079f8c8e7c7e62
parentd6fe023e5ad9d8ab8d2448943734a78dfdf21485
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.

(cherry picked from commit 460a25cdaef1a2b6b8e14e371d868aa91b0e72e8)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_sp.c
drivers/net/bnx2x/bnx2x_sp.h