]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: s/__dev_set_mtu/__netif_set_mtu/
authorStanislav Fomichev <sdf@fomichev.me>
Thu, 17 Jul 2025 17:23:30 +0000 (10:23 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 19 Jul 2025 00:27:47 +0000 (17:27 -0700)
commit303a8487a657c357ca6abc06a4045f72cdae90d5
treefde1f62eab2df2d8faa9d78ae660775132f810f4
parent0413a34ef678c3e2f0fafb4e113e810a05197030
net: s/__dev_set_mtu/__netif_set_mtu/

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_set_mtu is used only by bond, so move it into
NETDEV_INTERNAL namespace.

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