[TG3]: Fix set ring params tx ring size implementation
authorRanjit Manomohan <ranjitm@google.com>
Thu, 19 Oct 2006 03:54:26 +0000 (20:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2006 03:54:26 +0000 (20:54 -0700)
commit42952231c6a8623117ee3cc89c82d382dc69ca30
tree8c4db924ae0e1cebfcbedd7da75008675a36c523
parent5175c3786c244f8b689854db24c9e79b1c6a084f
[TG3]: Fix set ring params tx ring size implementation

Fixes the implementation of the ethtool set ring parameters for the
tg3 transmit ring.  The size of tx_pending is taken into account
before doing a netif_wake_queue.  This prevents the interface from
locking up when smaller transmit ring sizes are used.

Signed-off-by: Ranjit Manomohan <ranjitm@google.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c