commit | b590ace09d51cd39744e0f7662c5e4a0d1b5d952 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Thu Jan 10 23:51:54 2013 +0000 |
committer | Ben Hutchings <bhutchings@solarflare.com> | Tue Feb 26 14:57:16 2013 +0000 |
tree | c83ba26d5cc2e970c271f46d64b47e9767bce908 | |
parent | 3a68f19d7afb80f548d016effbc6ed52643a8085 [diff] |
sfc: Fix efx_rx_buf_offset() in the presence of swiotlb We assume that the mapping between DMA and virtual addresses is done on whole pages, so we can find the page offset of an RX buffer using the lower bits of the DMA address. However, swiotlb maps in units of 2K, breaking this assumption. Add an explicit page_offset field to struct efx_rx_buffer. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>