From patchwork Mon Aug 2 03:57:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yajun Deng X-Patchwork-Id: 12413243 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D7EAC4338F for ; Mon, 2 Aug 2021 03:58:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C25061050 for ; Mon, 2 Aug 2021 03:58:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbhHBD6L (ORCPT ); Sun, 1 Aug 2021 23:58:11 -0400 Received: from out0.migadu.com ([94.23.1.103]:24851 "EHLO out0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbhHBD6J (ORCPT ); Sun, 1 Aug 2021 23:58:09 -0400 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=1627876679; 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=xXttDcdgMtO70n4+Bnxj/8qRW2/JnpjzU4V0hygBryo=; b=TBr+Xct6kS6NB2mLaTZj8uevrdef6hqdBQwxQRz6e2uHt0/yXzqOIlGR8kXsWwVF9Tr98I RFcyj8vX2v5QvNMWYKqwbw6nKPxtEPif+gF2skQYTdtVmncF78eFouQ9IKahV4YfFiNogo nJeUwCjGaGjY5Hb+8ukD+SHQqQdCdME= From: Yajun Deng To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yajun Deng Subject: [PATCH net-next] neighbour: Rename procfs entry Date: Mon, 2 Aug 2021 11:57:45 +0800 Message-Id: <20210802035745.29934-1-yajun.deng@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: yajun.deng@linux.dev Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Use gc_thresh_{min, default, max} instead of gc_thresh{1, 2, 3}. This is more friendly for user. Signed-off-by: Yajun Deng --- net/core/neighbour.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index e831b9adf1e4..c294addb7818 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -3595,7 +3595,7 @@ static struct neigh_sysctl_table { .proc_handler = proc_dointvec_jiffies, }, [NEIGH_VAR_GC_THRESH1] = { - .procname = "gc_thresh1", + .procname = "gc_thresh_min", .maxlen = sizeof(int), .mode = 0644, .extra1 = SYSCTL_ZERO, @@ -3603,7 +3603,7 @@ static struct neigh_sysctl_table { .proc_handler = proc_dointvec_minmax, }, [NEIGH_VAR_GC_THRESH2] = { - .procname = "gc_thresh2", + .procname = "gc_thresh_default", .maxlen = sizeof(int), .mode = 0644, .extra1 = SYSCTL_ZERO, @@ -3611,7 +3611,7 @@ static struct neigh_sysctl_table { .proc_handler = proc_dointvec_minmax, }, [NEIGH_VAR_GC_THRESH3] = { - .procname = "gc_thresh3", + .procname = "gc_thresh_max", .maxlen = sizeof(int), .mode = 0644, .extra1 = SYSCTL_ZERO,