sfc: Prepare for RX scatter on EF10
authorJon Cooper <jcooper@solarflare.com>
Fri, 8 Mar 2013 10:18:28 +0000 (10:18 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 29 Aug 2013 17:12:12 +0000 (18:12 +0100)
commite8c68c0a09279107b5b239ca6fa7c5839717b7e2
tree27de28a6c05415007eb9d4f7c89aa4667aecf2dc
parent15acb1cea5d9298eac511b80380183be624fa31c
sfc: Prepare for RX scatter on EF10

RX DMA scatter is always enabled on EF10.  Adjust the common RX
completion handling to allow for this.

RX completion events on EF10 include the length used from a single
descriptor, not the cumulative length used.  Add a field to struct
efx_rx_queue to hold the cumulative length.

[bwh: Also fix a related comment]
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/rx.c