diff options
author | 2022-11-23 21:31:37 +0100 | |
---|---|---|
committer | 2022-11-25 10:38:10 +0000 | |
commit | 560c7223d6e48171d5a34ca07f6c886d364bcbdf (patch) | |
tree | c3520e318ff0e004f7b22c906146f9a275c6749b /net/core/of_net.c | |
parent | net: lan966x: Update rxq memory model (diff) | |
download | linux-rng-560c7223d6e48171d5a34ca07f6c886d364bcbdf.tar.xz linux-rng-560c7223d6e48171d5a34ca07f6c886d364bcbdf.zip |
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 'net/core/of_net.c')
0 files changed, 0 insertions, 0 deletions