sfc: Move all TX DMA length limiting into tx.c
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 23 Oct 2009 08:31:20 +0000 (08:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2009 11:27:07 +0000 (04:27 -0700)
commit63f1988419ccaa544d1d31aadc1dd309f6471ffe
treed973e7c103b9453063d02c8895f629c4ca692a33
parent6d51d307509f98f070688b4bff1d0f7462c4d3ec
sfc: Move all TX DMA length limiting into tx.c

Replace the duplicated logic in efx_enqueue_skb() and
efx_tx_queue_insert() with an inline function, efx_max_tx_len().

Remove the failed attempt at abstracting hardware-specifics and put
all the magic numbers in efx_max_tx_len().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon.c
drivers/net/sfc/net_driver.h
drivers/net/sfc/tx.c
drivers/net/sfc/workarounds.h