diff options
| author | Jakub Kicinski <[email protected]> | 2025-01-07 16:08:40 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-01-09 14:33:08 +0000 |
| commit | 0b7bdc7fab5703ddff677a82c1de7b3ac500974f (patch) | |
| tree | 43a7bc90e5e74a2a09b6f2f5f65d7767db507f78 /net/core/netdev_rx_queue.c | |
| parent | net: make sure we retain NAPI ordering on netdev->napi_list (diff) | |
| download | kernel-0b7bdc7fab5703ddff677a82c1de7b3ac500974f.tar.gz kernel-0b7bdc7fab5703ddff677a82c1de7b3ac500974f.zip | |
netdev: define NETDEV_INTERNAL
Linus suggested during one of past maintainer summits (in context of
a DMA_BUF discussion) that symbol namespaces can be used to prevent
unwelcome but in-tree code from using all exported functions.
Create a namespace for netdev.
Export netdev_rx_queue_restart(), drivers may want to use it since
it gives them a simple and safe way to restart a queue to apply
config changes. But it's both too low level and too actively developed
to be used outside netdev.
Reviewed-by: Willem de Bruijn <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/netdev_rx_queue.c')
| -rw-r--r-- | net/core/netdev_rx_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/netdev_rx_queue.c b/net/core/netdev_rx_queue.c index e217a5838c87..db82786fa0c4 100644 --- a/net/core/netdev_rx_queue.c +++ b/net/core/netdev_rx_queue.c @@ -79,3 +79,4 @@ err_free_new_mem: return err; } +EXPORT_SYMBOL_NS_GPL(netdev_rx_queue_restart, "NETDEV_INTERNAL"); |
