diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-11-23 21:31:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-25 10:38:10 +0000 |
commit | 560c7223d6e48171d5a34ca07f6c886d364bcbdf (patch) | |
tree | c3520e318ff0e004f7b22c906146f9a275c6749b /tools/testing/selftests/bpf/prog_tests/stacktrace_map.c | |
parent | 77ddda44411c36f6276616b9609a50ca98dc4d2c (diff) |
net: lan966x: Update dma_dir of page_pool_params
To add support for XDP_TX it is required to be able to write to the DMA
area therefore it is required that the pages will be mapped using
DMA_BIDIRECTIONAL flag.
Therefore check if there are any xdp programs on the interfaces and in
that case set DMA_BIDRECTIONAL otherwise use DMA_FROM_DEVICE.
Therefore when a new XDP program is added it is required to redo the
page_pool.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/stacktrace_map.c')
0 files changed, 0 insertions, 0 deletions