Commit bfb20412 authored by Ilias Apalodimas's avatar Ilias Apalodimas Committed by David S. Miller

net: netsec: Sync dma for device on buffer allocation

cd1973a9 ("net: netsec: Sync dma for device on buffer allocation")
was merged on it's v1 instead of the v3.
Merge the proper patch version
Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 61a582be
...@@ -743,9 +743,7 @@ static void *netsec_alloc_rx_data(struct netsec_priv *priv, ...@@ -743,9 +743,7 @@ static void *netsec_alloc_rx_data(struct netsec_priv *priv,
*/ */
*desc_len = PAGE_SIZE - NETSEC_RX_BUF_NON_DATA; *desc_len = PAGE_SIZE - NETSEC_RX_BUF_NON_DATA;
dma_dir = page_pool_get_dma_dir(dring->page_pool); dma_dir = page_pool_get_dma_dir(dring->page_pool);
dma_sync_single_for_device(priv->dev, dma_sync_single_for_device(priv->dev, *dma_handle, *desc_len, dma_dir);
*dma_handle - NETSEC_RXBUF_HEADROOM,
PAGE_SIZE, dma_dir);
return page_address(page); return page_address(page);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment