net: s/dev_get_mac_address/netif_get_mac_address/
authorStanislav Fomichev <sdf@fomichev.me>
Thu, 17 Jul 2025 17:23:28 +0000 (10:23 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 19 Jul 2025 00:27:46 +0000 (17:27 -0700)
commitaf1d017377c1c1931bfb898e719ab712cf79f944
treeb68aa226d019f1e2e4e57dcdecd2aec19d820e90
parentffea1168346120df9417fcafd8f3a1c93033ae34
net: s/dev_get_mac_address/netif_get_mac_address/

Commit cc34acd577f1 ("docs: net: document new locking reality")
introduced netif_ vs dev_ function semantics: the former expects locked
netdev, the latter takes care of the locking. We don't strictly
follow this semantics on either side, but there are more dev_xxx handlers
now that don't fit. Rename them to netif_xxx where appropriate.

netif_get_mac_address is used only by tun/tap, so move it into
NETDEV_INTERNAL namespace.

Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250717172333.1288349-3-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/tap.c
drivers/net/tun.c
include/linux/netdevice.h
net/core/dev.c
net/core/dev_ioctl.c
net/core/net-sysfs.c