Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp325328pxj; Wed, 23 Jun 2021 23:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXmWVVLCvwsjQ4YiltDdYXznrLBWsLPBKO91mabyfng5cI6QsblMgCGttxH+xCk7M4y/Zr X-Received: by 2002:a05:6402:430d:: with SMTP id m13mr4969382edc.283.1624516215992; Wed, 23 Jun 2021 23:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624516215; cv=none; d=google.com; s=arc-20160816; b=dwc0hsRv+DawULRBbaesg54kNhzFI220bd3G3IzKq/SDZFsicmueHqGpdR2v5mqYLy E6qTYH1KkLhDWdLSJh3/TUpjPOraqJ/kFK9JYVfP24MHu27dPQ0A5QW4DU6jw9gFkFqp P8irj+rrl2j0wJi07AvhYxlByXzovYnKaVY41ww1G3PmBslq1JqkX/uExq3U+EdDpFKl Dcm0nRHtT0pbc+xoX1iSwcmVBxnNlz5+FJlksXLoEG9kVtS70gYYH2MjQZib/wRJiLHW 0JAxxYKdP76OkGMP7MQKcEX1AHGaTIEP4ftmPiQG/BdpYJ71oC5W36CWan0JYLRdTSo2 fbmA== 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=EChwH3LYVrRmOOCpLZS2ULJZ1eQisA6xd7kU4wo07EA=; b=AtwtxuDR8fPKhpH34tmMrNTP9YKMWH0fbQikpvUIzuQ6ME+cGli4M5nFNyDr0h3BN9 pE9QQ+PQZ9FzmwMrBo6709XN9JxZaEaDEP+lqhJFbuMZ+lOjyS9qCo3ECaHY3hVobD2U shiNrzk7YLwkTp2TCMy+7g+ctpifi8Htfno2PaorEaXyQrBugU6qevkvN1XDJ3xQu91x 10wkHVqe0cCYty9Z1NOwiWEJ4pgbe9JeA5DH7lsPWB9MKebHC8hdiamGZ395XSTak4hx uqeyBEtl9grzFDWIDskOitFzcA+j6p4tU1qVGXqcdZe8HuE5Vjlp5hSqv4fZMhkCmXG/ YuDQ== 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 e12si1879220ejy.258.2021.06.23.23.29.49; Wed, 23 Jun 2021 23:30:15 -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 S231216AbhFXGaU (ORCPT + 99 others); Thu, 24 Jun 2021 02:30:20 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:45797 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231132AbhFXGaT (ORCPT ); Thu, 24 Jun 2021 02:30:19 -0400 X-UUID: e3c7c8f1ed7e4f5fb9d9096946be6d03-20210624 X-UUID: e3c7c8f1ed7e4f5fb9d9096946be6d03-20210624 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 744569985; Thu, 24 Jun 2021 14:27:56 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 24 Jun 2021 14:27:55 +0800 Received: from localhost.localdomain (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 24 Jun 2021 14:27:53 +0800 From: Rocco Yue To: Greg KH , David Ahern CC: "David S . Miller" , Jakub Kicinski , Jonathan Corbet , Hideaki YOSHIFUJI , David Ahern , Matthias Brugger , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , , , , , , , , , , Rocco Yue Subject: Re: [PATCH 1/4] net: if_arp: add ARPHRD_PUREIP type Date: Thu, 24 Jun 2021 14:13:10 +0800 Message-ID: <20210624061310.12315-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 Thu, 2021-06-24 at 07:29 +0200, Greg KH wrote: > > Thanks for the explaination, why is this hardware somehow "special" in > this way that this has never been needed before? > > thanks, > > greg k-h > Before kernel-4.18, RAWIP was the same as PUREIP, neither of them automatically generates an IPv6 link-local address, and the way to generate an IPv6 global address is the same. After kernel-4.18 (include 4.18 version), the behavior of RAWIP had changed due to the following patch: @@ static int ipv6_generate_eui64(u8 *eui, struct net_device *dev) + case ARPHRD_RAWIP: + return addrconf_ifid_rawip(eui, dev); } return -1; } the reason why the kernel doesn't need to generate the link-local address automatically is as follows: In the 3GPP 29.061, here is some description as follows: "in order to avoid any conflict between the link-local address of MS and that of the GGSN, the Interface-Identifier used by the MS to build its link-local address shall be assigned by the GGSN. The GGSN ensures the uniqueness of this Interface-Identifier. Then MT shall then enforce the use of this Interface-Identifier by the TE" In other words, in the cellular network, GGSN determines whether to reply to the Router Solicitation message of UE by identifying the low 64bits of UE interface's ipv6 link-local address. When using a new kernel and RAWIP, kernel will generate an EUI64 format ipv6 link-local address, and if the device uses this address to send RS, GGSN will not reply RA message. Therefore, in that background, we came up with PUREIP to make kernel doesn't generate a ipv6 link-local address in any address generate mode. Thanks, Rocco