summaryrefslogtreecommitdiff
path: root/net/ipv4/nexthop.c
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@fomichev.me>2025-07-17 10:23:31 -0700
committerJakub Kicinski <kuba@kernel.org>2025-07-18 17:27:47 -0700
commit93893a57efd431b9b4e72359bc8a8428681ca688 (patch)
treecb52f299ed0d348428673f40f7d17bd59c552ddc /net/ipv4/nexthop.c
parent303a8487a657c357ca6abc06a4045f72cdae90d5 (diff)
downloadlinux-93893a57efd431b9b4e72359bc8a8428681ca688.tar.gz
linux-93893a57efd431b9b4e72359bc8a8428681ca688.tar.bz2
linux-93893a57efd431b9b4e72359bc8a8428681ca688.zip
net: s/dev_get_flags/netif_get_flags/
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. Signed-off-by: Stanislav Fomichev <sdf@fomichev.me> Link: https://patch.msgid.link/20250717172333.1288349-6-sdf@fomichev.me Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/nexthop.c')
-rw-r--r--net/ipv4/nexthop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/nexthop.c b/net/ipv4/nexthop.c
index e808801ab9b8..29118c43ebf5 100644
--- a/net/ipv4/nexthop.c
+++ b/net/ipv4/nexthop.c
@@ -3884,7 +3884,7 @@ static int nh_netdev_event(struct notifier_block *this,
nexthop_flush_dev(dev, event);
break;
case NETDEV_CHANGE:
- if (!(dev_get_flags(dev) & (IFF_RUNNING | IFF_LOWER_UP)))
+ if (!(netif_get_flags(dev) & (IFF_RUNNING | IFF_LOWER_UP)))
nexthop_flush_dev(dev, event);
break;
case NETDEV_CHANGEMTU: