Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2382455pxy; Tue, 3 Aug 2021 05:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl1075oiGALU15GkC2QUJbvOK1OEohFkmY6KLKkMFQZZy1ATjPlMwy/9nDlwx68c92s6qv X-Received: by 2002:a17:907:7faa:: with SMTP id qk42mr20339134ejc.291.1627992983146; Tue, 03 Aug 2021 05:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627992983; cv=none; d=google.com; s=arc-20160816; b=0gLH77/QYcg+IPsxme0ScU8zQhVUGYr9fx6kSktyoGTdZzdnuxipSP/qCnuuh6ugvU /UQQrUqbWYcqz1J8cmwQlwnB9Ez5bJoTvNTGGGgKKneHrb/208nBjnJ9JNMsilDwCA9W gbUcMIzHoVrIcF21yRENVTe0raOJmjn2z5GdZLTjMUZ6fHJO12+poaDK2gPZyarhJIgs PFkKGysJEkcM5DKOR6Vzg9ifm1iNF06vo759WI4qsqIvhAZYEP9TpDSWEe6+PWlivrnP AyVoVc0SHX/HQVd2mhZ+D006WchYs/AFrNuVK/ACEtxQHq782WcKOxnQjINI1MbjiDFz DmIQ== 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=ZAWP4o7gHBA4+7PHl4vx17sQZaL/7etrfP9qfSrwiAo=; b=a0zrzu4TfFYqnPiuKptGu4APwjnwnSzu8QTlC2+LJCH3ZPyktHv24GiVQzEthZyPvG DPytIjT3euBMCrDWodCE2o9udookcjHGAToqoW9xH3UBcTzFXFvLZgt0dADDSKV6EKmp WMRVD9CSPN95fSqJlct/DcsaqwgbUFxdd8kKusUaUE5s3gHDgIWw+9le2dftOxPYYWfn eNwIegZbyV1mUfWf9Bc5tBwzoIEfeg+rUD3vRYWVY9pRuQFD/S8qgMpKyWe9PwvPyHbC FZsZYQHeGJPqhR2lLzGYHsW7NGKiXCty8th+z/+GWojDKHGsjeAh1GsIJgxf2GFPhBU/ qU1g== 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 y8si14667331edw.359.2021.08.03.05.15.58; Tue, 03 Aug 2021 05:16:23 -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 S235665AbhHCMOt (ORCPT + 99 others); Tue, 3 Aug 2021 08:14:49 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:59112 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234524AbhHCMOs (ORCPT ); Tue, 3 Aug 2021 08:14:48 -0400 X-UUID: 7f656b4bb18d4a438c61284aaf3787e5-20210803 X-UUID: 7f656b4bb18d4a438c61284aaf3787e5-20210803 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 709433756; Tue, 03 Aug 2021 20:14:35 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Aug 2021 20:14:33 +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; Tue, 3 Aug 2021 20:14:33 +0800 From: Rocco Yue To: David Ahern CC: "David S . Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , , , , , , , , Rocco Yue Subject: Re: [PATCH net-next v2] ipv6: add IFLA_INET6_RA_MTU to expose mtu value in the RA message Date: Tue, 3 Aug 2021 19:57:59 +0800 Message-ID: <20210803115759.4342-1-rocco.yue@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-08-02 at 07:35 -0600, David Ahern wrote: > On 8/2/21 6:40 AM, Rocco Yue wrote: >> >> Regarding setting "reject_message" in the policy, after reviewing >> the code, I fell that it is unnecessary, because the cost of >> implementing it seems to be a bit high, which requires modifying >> the function interface. The reasons is as follows: > > The policy can be setup now to do the right thing once the extack > argument is available. > > do_setlink() has an extack argument. It calls validate_linkmsg which > calls validate_link_af meaning support can be added in a single patch. > If you decide to do it, then it should be a separate patch preceding > this one. > Hi David, Thanks for your advice, I will send a separate patch to add extack arg firstly. > Then userspace should get a link notification when ra_mtu is set so it > does not have to poll. It make sense, I will do it. Thanks Rocco