]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: socionext: different approach on DMA
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 8 Nov 2018 15:19:54 +0000 (17:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 03:42:41 +0000 (19:42 -0800)
commit4acb20b46214bc866945340b4d9e1de77700d6a3
treeb6b14f77795b8a1ac1557011c47249c092881a99
parent026b907d58c48b2ff2a4c04a67bb5f71ebda1f2d
net: socionext: different approach on DMA

Current driver dynamically allocates an skb and maps it as DMA Rx
buffer. In order to prepare for upcoming XDP changes, let's introduce a
different allocation scheme.
Buffers are allocated dynamically and mapped into hardware.
During the Rx operation the driver uses build_skb() to produce the
necessary buffers for the network stack.
This change increases performance ~15% on 64b packets with smmu disabled
and ~5% with smmu enabled

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c