diff options
author | Edward Cree <ecree@solarflare.com> | 2020-06-30 14:11:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 22:09:09 +0200 |
commit | 80a0074e6aee3657784744ed66ca2c0cc918ecf8 (patch) | |
tree | 54e6700d6b8be92ac85f408d661ed681aaca0f1d /drivers/net/ethernet/sfc/rx.c | |
parent | sfc: commonise some MAC configuration code (diff) | |
download | linux-80a0074e6aee3657784744ed66ca2c0cc918ecf8.tar.xz linux-80a0074e6aee3657784744ed66ca2c0cc918ecf8.zip |
sfc: commonise efx_sync_rx_buffer()
The ef100 RX path will also need to DMA-sync RX buffers.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/rx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/rx.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c index c73b933a9101..59a43d586967 100644 --- a/drivers/net/ethernet/sfc/rx.c +++ b/drivers/net/ethernet/sfc/rx.c @@ -40,14 +40,6 @@ #define EFX_RX_MAX_FRAGS DIV_ROUND_UP(EFX_MAX_FRAME_LEN(EFX_MAX_MTU), \ EFX_RX_USR_BUF_SIZE) -static inline void efx_sync_rx_buffer(struct efx_nic *efx, - struct efx_rx_buffer *rx_buf, - unsigned int len) -{ - dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, - DMA_FROM_DEVICE); -} - static void efx_rx_packet__check_len(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf, int len) |