aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-04-22 20:17:52 -0700
committerDavid S. Miller <[email protected]>2017-04-24 14:35:44 -0400
commit5cd4fbeab21b89e08df4590b2020f2e5f60c0d19 (patch)
tree491fddcdad6232e9bfe119624760f5fe4776608e /lib/memory-notifier-error-inject.c
parent0d688a0d337628ded9bb05c99f35fac7424af4f8 (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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions