Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1630643pxy; Mon, 2 Aug 2021 06:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr342NhpABs7tBjNGuxx12IGdxtbde0WFP1o8IuiP+Exdx6r7Ilr6EpgkqB0AbTfd5oAM7 X-Received: by 2002:a92:8712:: with SMTP id m18mr640441ild.132.1627911496800; Mon, 02 Aug 2021 06:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627911496; cv=none; d=google.com; s=arc-20160816; b=ExcTN59Oii9Ava8ebDLic6ZHenLL1ZK/N3erJItOWrN5ZAAJv0KnD1LrkmNMeCa4rk Kt6DbZ1MrzIpAZQcTKi3Za290oxj8Pc1tMhDOgHaJds/+OKhtUL6v8YURtuQN9DVbNSb fgIWPl+m0tt5DykHEDj1p3bP+5d6hgu1msNFCNNHSoVBrG/me2Vp4que0yh5KleVXucL 2jwsh8AhB2tJqCzSxTbyTEX+qkULLzWTWRDYw7ePH2d5mcTF7IllwNAHgkBd6yBaADCx GfDCob/U9uiHxXdv4wbh7brMPxFAtJtB3tNraqYyVdiS27kMg43UC1Bp0raanRRN5Hhk YI/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PbcBzYCDzjM/TKXUy4gd/mf09bcYCldaAFLfvfQnHzQ=; b=QL23VfHQhoX6Wns19qVW40DEAEaOnGNNta/aUXWBxOxoM/0zzwVXoj2RKuizQAVGQI xLFDBZWPIT47dtUWJw2g2DNrGAGi0nLibRUwDaMVs8U8vF0cXVmcdRNgzc5MFamAovkq a4gfHpe4P3yofy4+S3AkM7NzGmBGXvj3BL7+X3LNc/jNnpZ6h6yJ63jomTUbBef/sGig KOi3kn3qj4hQZXM/7YyFWotHX9WrP1AshBHFlFNijDIf0lpqu7Czs05lN8gPwtFla1/O juaQfEUqroINqv025MQJNsmR036eIZ08MiQ5WRvX+fIK2S4RX5O3Lw7lz+jJfImFwx/j bQNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DwaAWEc4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si12211338ilx.20.2021.08.02.06.38.04; Mon, 02 Aug 2021 06:38:16 -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=@gmail.com header.s=20161025 header.b=DwaAWEc4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233867AbhHBNhX (ORCPT + 99 others); Mon, 2 Aug 2021 09:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbhHBNhW (ORCPT ); Mon, 2 Aug 2021 09:37:22 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B57DC06175F; Mon, 2 Aug 2021 06:37:12 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id u10so24087443oiw.4; Mon, 02 Aug 2021 06:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PbcBzYCDzjM/TKXUy4gd/mf09bcYCldaAFLfvfQnHzQ=; b=DwaAWEc4Q6Uca77i1pa2FzsHjwr9/FjCJvqewvhgiKAby+uKugn8R/1vtl381tQ9TD zD6mjWM7EDPmBy87dl6240otKOcRKK1tPlXJY1ZXkmxjjFZBhIk06BhMdPmByoKvaPqg Y3mtrBAYzvH3br9rxFH3OmFeiQ//k8GQ/IFamrv3tamOfxhY+RJQzGqYHx+AToApOs17 mwY54HJmk5kv5ObixIBouxDiRRWFFhhXyumRy56FpmsZ18OAF6ob0pvtdJsHllSVets1 NRS7JS7nUCA04dXRUjgz0WM4Mcm0r3xQY8IQnLSI9OoH+2FoLlk6ZZDuNurkvBpCGMUJ l9CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PbcBzYCDzjM/TKXUy4gd/mf09bcYCldaAFLfvfQnHzQ=; b=cluepT3ZAVK36QsmYZSw8tfPvOqohrQjlhJ4DSM0MQCB50zFMoXp7ButbY8Oup0cVo o5jhOLvgxQty2leYBHYg+oCfhHtEsZ8cNxPHCDUMftyeGy+z91vYM11MxCE5pOHJa/UI V4j1eeKjT+LeKlzzoYI7UPikAzNvUkXRAtkXoDEpa4iw+lTwnkzTenYOZNGdlfMK2b5o tv3heu7Ed0sG/Ab4AbJPzgHLQeubMMwGZX04TVKdDgsjGn4lnGsJRJtBZkBQkTq8JTXl PTsOrUttY+TDUU9T0IIqAKfdEGhGEaSUUI2HzmXDP+tM6SlqfFHDnbkapRsfz9lAUqve BMIw== X-Gm-Message-State: AOAM530eCHU8USaE3x9YUUjPXzQx5IHClHGNsdtkmU8CdjXTJJin0EcU 2aeTB7vI0HBbmR38YKJCqns= X-Received: by 2002:a05:6808:13c5:: with SMTP id d5mr10367796oiw.56.1627911431838; Mon, 02 Aug 2021 06:37:11 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([8.48.134.27]) by smtp.googlemail.com with ESMTPSA id r5sm1856639oti.5.2021.08.02.06.37.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Aug 2021 06:37:11 -0700 (PDT) Subject: Re: [PATCH net-next v2] ipv6: add IFLA_INET6_RA_MTU to expose mtu value in the RA message To: Rocco Yue , David Ahern Cc: "David S . Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, rocco.yue@gmail.com, chao.song@mediatek.com, zhuoliang.zhang@mediatek.com References: <5be90cf4-f603-c2f2-fd7e-3886854457ba@gmail.com> <20210802031924.3256-1-rocco.yue@mediatek.com> From: David Ahern Message-ID: Date: Mon, 2 Aug 2021 07:37:08 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210802031924.3256-1-rocco.yue@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/1/21 9:19 PM, Rocco Yue wrote: > On Sat, 2021-07-31 at 11:17 -0600, David Ahern wrote: > On 7/30/21 7:52 PM, Rocco Yue wrote: >>> In this way, if the MTU values that the device receives from >>> the network in the PCO IPv4 and the RA IPv6 procedures are >>> different, the user space process can read ra_mtu to get >>> the mtu value carried in the RA message without worrying >>> about the issue of ipv4 being stuck due to the late arrival >>> of RA message. After comparing the value of ra_mtu and ipv4 >>> mtu, then the device can use the lower MTU value for both >>> IPv4 and IPv6. >> >> you are storing the value and sending to userspace but never using it >> when sending a message. What's the pointing of processing the MTU in the >> RA if you are not going to use it to control message size? > > Hi David, > > In the requirement of mobile operator at&t in 2021: > AT&T Prioritize Lower MTU value: > If the MTU values that the device receives from the network in the PCO > IPv4 and the RA IPv6 procedures are different, > then the device shall use the lower MTU value for both IPv4 and IPv6. > > And in the 3GPP 23.060: > The PDP PDUs shall be routed and transferred between the MS and the GGSN > or P-GW as N-PDUs. In order to avoid IP layer fragmentation between the > MS and the GGSN or P-GW, the link MTU size in the MS should be set to the > value provided by the network as a part of the IP configuration. This > applies to both IPv6 and IPv4. > > That means user needs to be able to correctly read the mtu value carried > in the RA message so that user can correctly compare PCO ipv4 mtu and > RA ipv6 mtu. > Then userspace should get a link notification when ra_mtu is set so it does not have to poll.