bnx2x: organize BDs calculation for stop/resume
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 25 Jun 2012 22:32:50 +0000 (22:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 08:31:47 +0000 (01:31 -0700)
commit7df2dc6bd4b4b13fd9bd239603cc825e3d1aa316
tree6b1cc8bf50e0aded9bd8b244217ced6c346cc873
parent16626b0cc3d5afe250850f96759b241f8a403b52
bnx2x: organize BDs calculation for stop/resume

Put the numbers used for stop/resume queue in a single place and
fix the condition for sanity check.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c