Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp258413pxj; Tue, 1 Jun 2021 21:18:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZBpZVm+L6nCw4JmKHrdUMTn4hKuCoyFBg8+kAW2MVjvJkzTl43zre7pq6xq8ZmonD/nKv X-Received: by 2002:a05:6402:885:: with SMTP id e5mr4352853edy.248.1622607483322; Tue, 01 Jun 2021 21:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622607483; cv=none; d=google.com; s=arc-20160816; b=Ire7zLQ4+byN3xmQBkFtT/X13bcjq2i4hDIWYjpYT6yfqrHRYl30TXd6I8MismJUid V1rb5EqSvvB4I4afWe1tzonC6Y0Dbxtegc8MU7DlCa/FOhist4S20xCHViq2p1YBY1cq 4MK0KH1reRG/Ax3wpHH3opATu7U7gRp4Ug804xof0+wiJVb3lqUkyY0cwCN3VRETvMe+ rxIU69HP8iwCVnOm0SvGQ1wLGamPzd57w6bghrbJ8C5rC9xOy9sD2xkfaGbdWtE+maCm kbIT0es0k4QIdNHsZdb7PeFR5F1bpoFJlA+ZXRGGWzjAwh7r9rc3vVoRyBdUFd2Pi7zl Bpbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=9hZBiB4j+T/kgtighqsemTzG+GUs3WHT4zjQBxsVw7E=; b=v2sprCjTGSHB8Gj/ZQtWbwacTKNQhkTQl9YSEZgL8ncAXEWNSMB4dkDcp27k8ARrEk C9zmoBferJqh/qJYdRG4QPTEqzyIzH0tklvrxn70efsWoykPbpKY8C58UynhRXXr44yX NMT2+0pycHJw7b3DSEAHVnIeqniH4vjs2++R0jVAgcuv/CO9UG7td6Wp1fcJWIYIJY0U mOv8gvrI5vaKdgeD3hOIOCsTnwAkxIbYzVg6d1V/nNp61xUmXWwI4mJbuXXIv5sH8hPb XNERB4iN8HXZExuNG3NCRzNdvlp5jXAdBDUq9AgCYUuyW6xux2a38TQO0E1XVoWdUrCC 6vXQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si17106701ejr.730.2021.06.01.21.17.40; Tue, 01 Jun 2021 21:18:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231280AbhFBDaf (ORCPT + 99 others); Tue, 1 Jun 2021 23:30:35 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41729 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229593AbhFBDaf (ORCPT ); Tue, 1 Jun 2021 23:30:35 -0400 X-UUID: 6dbe05f1bc844db29dd4987ffec5c7dc-20210602 X-UUID: 6dbe05f1bc844db29dd4987ffec5c7dc-20210602 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1566125578; Wed, 02 Jun 2021 11:28:48 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 2 Jun 2021 11:28:47 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 2 Jun 2021 11:28:46 +0800 From: Rocco Yue To: David Ahern CC: "David S . Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Matthias Brugger , , , , , , , Rocco Yue Subject: Re: [PATCH] ipv6: create ra_mtu proc file to only record mtu in RA Date: Wed, 2 Jun 2021 11:15:02 +0800 Message-ID: <20210602031502.31600-1-rocco.yue@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <7087f518-f86e-58fb-6f32-a7cda77fb065@gmail.com> References: <7087f518-f86e-58fb-6f32-a7cda77fb065@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-06-01 at 18:38 -0600, David Ahern wrote: On 6/1/21 3:16 AM, Rocco Yue wrote: > > For this patch set, if RA message carries the mtu option, > > "proc/sys/net/ipv6/conf//ra_mtu" will be updated to the > > mtu value carried in the last RA message received, and ra_mtu > > is an independent proc file, which is not affected by the update > > of interface mtu value. > > I am not a fan of more /proc/sys files. > > You are adding it to devconf which is good. You can add another link > attribute, e.g., IFLA_RA_MTU, and have it returned on link queries. > > Make sure the attribute can not be sent in a NEWLINK or SETLINK request; > it should be read-only for GETLINK. Thanks for your review and advice. Do you mean that I should keep the ra_mtu proc and add an another extra netlink msg? Or only use netlink msg instead of ra_mtu proc? I will do it. Thanks, Rocco