aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/of_net.h
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-11-23 21:31:37 +0100
committerDavid S. Miller <davem@davemloft.net>2022-11-25 10:38:10 +0000
commit560c7223d6e48171d5a34ca07f6c886d364bcbdf (patch)
treec3520e318ff0e004f7b22c906146f9a275c6749b /include/linux/of_net.h
parentnet: lan966x: Update rxq memory model (diff)
downloadwireguard-linux-560c7223d6e48171d5a34ca07f6c886d364bcbdf.tar.xz
wireguard-linux-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 'include/linux/of_net.h')
0 files changed, 0 insertions, 0 deletions