bnx2x: Spread rx buffers between allocated queues
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 12 Sep 2010 05:48:28 +0000 (05:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Sep 2010 03:02:53 +0000 (20:02 -0700)
commit251415808306a19be93ec93268e2985f10d3db8b
tree176b64ef9f742ae0ebcfa4eceae44859e01e4a1e
parent441993da47777d961300c070fe1210600af48ad8
bnx2x: Spread rx buffers between allocated queues

Default number of rx buffers will be divided equally
 between allocated queues. This will decrease amount of
 pre-allocated buffers on systems with multiple CPUs.
 User can override this behavior with ethtool -G.
 Minimum amount of rx buffers per queue set to 128.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_cmn.c
drivers/net/bnx2x/bnx2x_ethtool.c
drivers/net/bnx2x/bnx2x_main.c