diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-04-22 20:17:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-24 14:35:44 -0400 |
commit | 5cd4fbeab21b89e08df4590b2020f2e5f60c0d19 (patch) | |
tree | 491fddcdad6232e9bfe119624760f5fe4776608e /usr | |
parent | 0d688a0d337628ded9bb05c99f35fac7424af4f8 (diff) |
nfp: make use of the DMA_ATTR_SKIP_CPU_SYNC attr
DMA unmap may destroy changes CPU made to the buffer. To make XDP
run correctly on non-x86 platforms we should use the
DMA_ATTR_SKIP_CPU_SYNC attribute.
Thanks to using the attribute we can now push the sync operation to the
common code path from XDP handler.
A little bit of variable name reshuffling is required to bring the
code back to readable state.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions