diff options
| author | Mina Almasry <[email protected]> | 2024-09-10 17:14:45 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-09-12 03:44:30 +0000 |
| commit | 7c88f86576f382a5037f7acf2fce796ccafba4db (patch) | |
| tree | 4f9d01ad7604bedaaa9cde78148249407089a51d /include/net/netdev_rx_queue.h | |
| parent | Merge branch '200GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/... (diff) | |
| download | kernel-7c88f86576f382a5037f7acf2fce796ccafba4db.tar.gz kernel-7c88f86576f382a5037f7acf2fce796ccafba4db.zip | |
netdev: add netdev_rx_queue_restart()
Add netdev_rx_queue_restart(), which resets an rx queue using the
queue API recently merged[1].
The queue API was merged to enable the core net stack to reset individual
rx queues to actuate changes in the rx queue's configuration. In later
patches in this series, we will use netdev_rx_queue_restart() to reset
rx queues after binding or unbinding dmabuf configuration, which will
cause reallocation of the page_pool to repopulate its memory using the
new configuration.
[1] https://lore.kernel.org/netdev/[email protected]/T/
Signed-off-by: David Wei <[email protected]>
Signed-off-by: Mina Almasry <[email protected]>
Reviewed-by: Pavel Begunkov <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/net/netdev_rx_queue.h')
| -rw-r--r-- | include/net/netdev_rx_queue.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netdev_rx_queue.h b/include/net/netdev_rx_queue.h index aa1716fb0e53..e78ca52d67fb 100644 --- a/include/net/netdev_rx_queue.h +++ b/include/net/netdev_rx_queue.h @@ -54,4 +54,7 @@ get_netdev_rx_queue_index(struct netdev_rx_queue *queue) return index; } #endif + +int netdev_rx_queue_restart(struct net_device *dev, unsigned int rxq); + #endif |
