sfc: Update RX buffer address together with length
Adjust rx_buf->page_offset when we eat the RX hash prefix. Remove efx_rx_buf_offset(), which is now redundant. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
5036b7c7b9
commit
b74e3e8cd6
2 changed files with 8 additions and 13 deletions
|
@ -208,7 +208,8 @@ struct efx_tx_queue {
|
|||
* @dma_addr: DMA base address of the buffer
|
||||
* @page: The associated page buffer.
|
||||
* Will be %NULL if the buffer slot is currently free.
|
||||
* @page_offset: Offset within page
|
||||
* @page_offset: If pending: offset in @page of DMA base address.
|
||||
* If completed: offset in @page of Ethernet header.
|
||||
* @len: If pending: length for DMA descriptor.
|
||||
* If completed: received length, excluding hash prefix.
|
||||
* @flags: Flags for buffer and packet state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue