Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1317173pxy; Sun, 1 Aug 2021 20:57:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5UR9A23eAAN5QbbpoSAcK2mK/GS+eSow+L3ZW+GJrKn3l3UZjkSGwUhdXcz8ub6JLFakT X-Received: by 2002:a02:b058:: with SMTP id q24mr12638924jah.88.1627876634422; Sun, 01 Aug 2021 20:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627876634; cv=none; d=google.com; s=arc-20160816; b=XDCJW8P47euWMEkCQvvSltShC78MFlU2A0X2IogzlatZLD8bju3glkrp9Wuu/j/h8l GU7IkuWNkUpKh6cxuBFMXcln9busPVmpzkcF3FLUol7x1wONUE1HP/1C9CtY03x50aa5 mNHkHwUI6MyxbKRLBtgHJAh5RHE385Gl5P6oZR8uL0ZjmUhkKTcf0ODclV4PCz7sIdAj nmwMRRBdaNmQ+pALXG34XBNECbe09vEHJzJCHiXsPTs4EwKUE5Ow7Odn7s1/vpUGq/D2 qKo8yhAcWu6FP/7ZgmUFNsgIZtCN06r1/qeOUwAXzgng8n7H15ooDEvEfxg+bPU3gYKz Hn1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fc3KsDptB/sfJlBGqlKuVw7Qc6/CwmcXsOI/DvDRC/k=; b=dlXG8lRDP0Vqb1sPeVGmKX+OFGEjBj2UTj3m5jLf1nRP2K/Of+TN19/Bwou1gkflRV ws/1iphKim2hx9oIgHmWH7uKZQx3IP+YItXrmrNDT/TpUhrUQAA+YrT1ThXaPY5mx9ED yaVc46JRXsemG+jjb00qevSZrmMGeReVV0Hr8GVx6jDPczbjO5dsjnnvO0HVNnHjwFpi WNjnJfZALXj6y84CS4UZpYJ9VF6/EJJpew2HBhJQSRAqL3PWoVkdsh60ptkOXfjZjjB5 0j13Ed/mHBWRBeLqkeApC0LcH+zm4h6pmcm4c+PYdouwVpoQagyVQRIpNIYO8cT4Qdr8 FF2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="LeQHJ/2k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si10413104jal.24.2021.08.01.20.57.03; Sun, 01 Aug 2021 20:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="LeQHJ/2k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231898AbhHBD43 (ORCPT + 99 others); Sun, 1 Aug 2021 23:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbhHBD42 (ORCPT ); Sun, 1 Aug 2021 23:56:28 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B71C06175F; Sun, 1 Aug 2021 20:56:19 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1627876576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fc3KsDptB/sfJlBGqlKuVw7Qc6/CwmcXsOI/DvDRC/k=; b=LeQHJ/2kB7ORcHfPMrHgqeIzKUfNoeJ/i0nAQz+6fF31Mwi/XnyNavuWZwVJ/XALjXGFuP Ai8sF3pa5wFAkgk90Jl1yNhwJrc6kBKolSr/b41KD0vld2NT00c+FFzAsZ5ply41J0jh/2 Q/v8UTVXckESgQmQs6FYGYG7ZegQKbs= From: Yajun Deng 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 Subject: [PATCH net-next] net: ipv4/ipv6: rename procfs dentry Date: Mon, 2 Aug 2021 11:56:00 +0800 Message-Id: <20210802035600.29799-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: yajun.deng@linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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