sfc: Support only two rx buffers per page
authorSteve Hodgson <shodgson@solarflare.com>
Tue, 1 Jun 2010 11:33:17 +0000 (11:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:21:08 +0000 (02:21 -0700)
commitf7d6f379db61233a1740cb2c6818b9c97531771f
treebf9af05c24d928bf6a66699d084912f68faddf05
parent90d683afd1395016775c8d90508614f8d3000b81
sfc: Support only two rx buffers per page

- Pull the loop handling into efx_init_rx_buffers_(skb|page)
- Remove rx_queue->buf_page, and associated clean up code
- Remove unmap_addr, since unmap_addr is trivially calculable

This will allow us to recycle discarded buffers directly
from efx_rx_packet(), since will never be in the middle of
splitting a page.

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