sfc: Stop TX queues before they fill up
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 22 May 2012 00:27:58 +0000 (01:27 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 24 Aug 2012 18:00:27 +0000 (19:00 +0100)
commit14bf718fb97efe9ff649c317e7d87a3617b13e7c
tree421f6e0546d8d04ccad78292178c0fc560773a12
parent7668ff9c2ad7d354655e23afa836a92d54d2ea63
sfc: Stop TX queues before they fill up

We now have a definite upper bound on the number of descriptors per
skb; use that to stop the queue when the next packet might not fit.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tx.c