aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2025-07-17 17:23:28 +0000
committerJakub Kicinski <[email protected]>2025-07-19 00:27:46 +0000
commitaf1d017377c1c1931bfb898e719ab712cf79f944 (patch)
treeb68aa226d019f1e2e4e57dcdecd2aec19d820e90 /net/core/dev_ioctl.c
parentnet: s/dev_get_port_parent_id/netif_get_port_parent_id/ (diff)
downloadkernel-af1d017377c1c1931bfb898e719ab712cf79f944.tar.gz
kernel-af1d017377c1c1931bfb898e719ab712cf79f944.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_ioctl.c')
-rw-r--r--net/core/dev_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c
index 616479e71466..ceb2d63a818a 100644
--- a/net/core/dev_ioctl.c
+++ b/net/core/dev_ioctl.c
@@ -728,7 +728,8 @@ int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr,
switch (cmd) {
case SIOCGIFHWADDR:
dev_load(net, ifr->ifr_name);
- ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name);
+ ret = netif_get_mac_address(&ifr->ifr_hwaddr, net,
+ ifr->ifr_name);
if (colon)
*colon = ':';
return ret;