diff options
| author | Stanislav Fomichev <[email protected]> | 2025-07-17 17:23:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-19 00:27:47 +0000 |
| commit | 93893a57efd431b9b4e72359bc8a8428681ca688 (patch) | |
| tree | cb52f299ed0d348428673f40f7d17bd59c552ddc /net/core/dev_ioctl.c | |
| parent | net: s/__dev_set_mtu/__netif_set_mtu/ (diff) | |
| download | kernel-93893a57efd431b9b4e72359bc8a8428681ca688.tar.gz kernel-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 <[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c index ceb2d63a818a..9c0ad7f4b5d8 100644 --- a/net/core/dev_ioctl.c +++ b/net/core/dev_ioctl.c @@ -147,7 +147,7 @@ static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cm switch (cmd) { case SIOCGIFFLAGS: /* Get interface flags */ - ifr->ifr_flags = (short) dev_get_flags(dev); + ifr->ifr_flags = (short)netif_get_flags(dev); return 0; case SIOCGIFMETRIC: /* Get the metric on the interface |
