]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netdev: define NETDEV_INTERNAL
authorJakub Kicinski <kuba@kernel.org>
Tue, 7 Jan 2025 16:08:40 +0000 (08:08 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Jan 2025 14:33:08 +0000 (15:33 +0100)
commit0b7bdc7fab5703ddff677a82c1de7b3ac500974f
tree43a7bc90e5e74a2a09b6f2f5f65d7767db507f78
parentd6c7b03497eef8b66bf0b5572881359913e39787
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 <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/networking/netdevices.rst
net/core/netdev_rx_queue.c