From: Yajun Deng <yajun.deng@linux.dev>
To: davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org,
dsahern@kernel.org
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Yajun Deng <yajun.deng@linux.dev>
Subject: [PATCH net-next] net: ipv4/ipv6: rename procfs dentry
Date: Mon, 2 Aug 2021 11:56:00 +0800 [thread overview]
Message-ID: <20210802035600.29799-1-yajun.deng@linux.dev> (raw)
The "default" name just represents the initial value, anyone can modify
it in user. It is more appropriate to use "current" name.
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
---
net/core/neighbour.c | 2 +-
net/ipv4/devinet.c | 2 +-
net/ipv6/addrconf.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 53e85c70c6e5..e831b9adf1e4 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -3648,7 +3648,7 @@ int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p,
sizeof(t->neigh_vars[NEIGH_VAR_GC_INTERVAL]));
} else {
struct neigh_table *tbl = p->tbl;
- dev_name_source = "default";
+ dev_name_source = "current";
t->neigh_vars[NEIGH_VAR_GC_INTERVAL].data = &tbl->gc_interval;
t->neigh_vars[NEIGH_VAR_GC_THRESH1].data = &tbl->gc_thresh1;
t->neigh_vars[NEIGH_VAR_GC_THRESH2].data = &tbl->gc_thresh2;
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index c82aded8da7d..b716c5d1c821 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -2696,7 +2696,7 @@ static __net_init int devinet_init_net(struct net *net)
if (err < 0)
goto err_reg_all;
- err = __devinet_sysctl_register(net, "default",
+ err = __devinet_sysctl_register(net, "current",
NETCONFA_IFINDEX_DEFAULT, dflt);
if (err < 0)
goto err_reg_dflt;
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index db0a89810f28..614fe500f308 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -7002,7 +7002,7 @@ static int __addrconf_sysctl_register(struct net *net, char *dev_name,
if (!strcmp(dev_name, "all"))
ifindex = NETCONFA_IFINDEX_ALL;
- else if (!strcmp(dev_name, "default"))
+ else if (!strcmp(dev_name, "current"))
ifindex = NETCONFA_IFINDEX_DEFAULT;
else
ifindex = idev->dev->ifindex;
@@ -7112,7 +7112,7 @@ static int __net_init addrconf_init_net(struct net *net)
if (err < 0)
goto err_reg_all;
- err = __addrconf_sysctl_register(net, "default", NULL, dflt);
+ err = __addrconf_sysctl_register(net, "current", NULL, dflt);
if (err < 0)
goto err_reg_dflt;
#endif
--
2.32.0
reply other threads:[~2021-08-02 3:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210802035600.29799-1-yajun.deng@linux.dev \
--to=yajun.deng@linux.dev \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).