]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Correct efx_rx_buffer::page_offset when EFX_PAGE_IP_ALIGN != 0
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 5 Mar 2013 17:49:39 +0000 (17:49 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 6 Mar 2013 17:57:25 +0000 (17:57 +0000)
commita80554223eb66b33c56abcaeb0aa1f007a39f5cf
tree0b698120c031b71eb49c0221729fdc386764b6c9
parent5ed630a8282d98ffefbf8c81e2dd804b3d4aecae
sfc: Correct efx_rx_buffer::page_offset when EFX_PAGE_IP_ALIGN != 0

RX DMA buffers start at an offset of EFX_PAGE_IP_ALIGN bytes from the
start of a cache line.  This offset obviously needs to be included in
the virtual address, but this was missed in commit 783532107639
('sfc: Fix efx_rx_buf_offset() in the presence of swiotlb') since
EFX_PAGE_IP_ALIGN is equal to 0 on both x86 and powerpc.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/rx.c