Article View: linux.kernel.netdev
Article #15678Re: [PATCH net-next v2] ip6_gre: fix changelink conflict checks for L2 tunnels
From: Xia Yan
Date: Fri, 13 Nov 2026 07:08
Date: Fri, 13 Nov 2026 07:08
22 lines
9604 bytes
9604 bytes
Hi Jakub, Thanks for the review. I've dropped the collect_md filter from ip6gre_tunnel_find(). v3 only changes ip6gre_changelink_common(). For ordinary devices, it uses dev->type and rejects a match on another device, including a metadata device. For metadata devices, it updates the device itself without the ordinary duplicate search, as newlink does. The newlink, legacy ioctl and receive lookups are unchanged. I also moved the conflict and unregistering checks before encapsulation changes, so these rejected requests leave the encapsulation unchanged. I tested both L2 kinds under UML with ip6gre0 present, checked the receive interfaces and tunnel metadata, and ran the legacy ioctl checks. v3: https://lore.kernel.org/netdev/179455350258.84965.17518172977020586093.ip6gre-v3@cmss.chinamobile.com/ Thanks, Xia Yan
Technical Details
Message-ID:
<179455369855.86815.2266186229377426627.ip6gre-v3-followup@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362468-linux-kernel-netdev=dewy.ruReferences:
<20261104150330.70963-1-yanxia@cmss.chinamobile.com> <20261110205838.2246603-1-kuba@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362468-linux-kernel-netdev=dewy.ru
From: yanxia@cmss.chinamobile.com (Xia Yan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2] ip6_gre: fix changelink conflict checks for L2
tunnels
Date: Fri, 13 Nov 2026 15:08:18 +0800
Organization: Usenet Network
Message-ID: <179455369855.86815.2266186229377426627.ip6gre-v3-followup@cmss.chinamobile.com>
References: <20261104150330.70963-1-yanxia@cmss.chinamobile.com>
<20261110205838.2246603-1-kuba@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1323279"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:R0gZnhfzqZsPBE387vpTaqTABFQ= sha256:00LbxXME/oatMbvzZB1uWFd+/pxfVkcbv4DA+PpmGvo=
sha1:ggdplXp3k1OwEOz7WDAqdoMc6ss= sha256:78UfijdZgqYG5FRusvCMdnfkf/RgzsFblB+55+wkZ7k=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 606071144F4; Fri, 13 Nov 2026 14:08:29 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.85
X-Spam-Status: No, score=-2.85 tagged_above=-9999 required=6.31
tests=[DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key)
reason="fail (body has been altered)" header.d=cmss.chinamobile.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id Aw1KD1pzRySI;
Fri, 13 Nov 2026 14:08:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362468-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id AAA3D1144F0; Fri, 13 Nov 2026 14:08:07 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 21644881D2; Fri, 13 Nov 2026 07:10:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794553741;
b=Cvccy/GHLttAngwAhM8wEpISC9J+zjUBGCFO/wJY2qojvpiXGIxhPxOHpOml4UmpUF+y
i73sELIzGdE057VuUpkjC+tpv1n76K2mF60IyTUNgyEjqbW0Fe6wQ8mZlre9DHBfzv4mV
a95KbiSRYrOFySL0s9lad2YnZ3cNaWHgMEjNo3D3swPjpYQzL4xgZeDw0RusAbnC2kITx
t7KDKBXWxjfsZ0tLRqkSjJm74XNhJxmg+nfLN5Ba4ouXDMSPWz/qViyzFujGGTm2Xf/m6
/94J38OWmin2gF0MIdwRvG0WZ82E34GYFtRU+cQwUn5A8nD0vkzav7X80ScorLBaPBA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794553741;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo:
X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:
Received:X-RM-TRANSID:From:To:Cc:Subject:In-Reply-To:References:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Transfer-Encoding:Date:Message-ID;
bh=m5gdk+W3xc3fFZcALv8c+D0FiAHcjAVtduRb63rDx+E=;
b=M1NOSmnyVwBMclcNYWCaDgZjUMqn69LzuJbP8wozcSKC5GrEqNzLZLgpGEX53iSAY0ZV
EDT6CTkVw61GuhfExER0XW82Q8XnBYcfjEWUF9FA/XMT8UCHM/IXwF43FZVXwfHag0fCk
FbBDNzA44tYgxSQKagb5bghxePdUJystCdNwJBojGlmRs/c5O48+bt4wC50CRvj3gcTfb
cGYJYaaIp5WIyY3LkSota/DWi2SVs7GL2xOCB5QdafkVYfz9PLFxkLVQwYNYcO7/WhsEQ
LZUiY1VxcQcqfKEa3hv90cfp6yLFNIVIiKovZ5Gx6ga3frspz7X9B0m2buPCnUWJmTQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=wZo9or7+;
dmarc=pass header.from=cmss.chinamobile.com;
spf=pass smtp.mailfrom=cmss.chinamobile.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 4980860A3833;
Fri, 13 Nov 2026 07:09:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=wZo9or7+
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.135
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794553725;
b=dR0P0FmvsO5ZluuplrOEGjKXbetf1nVT/egGop1nMW8QGh88wfM63zI/46WTdo7f/S1j
ttuT8mbdTnrYMNQUK62u7k6xfYQqpj5VTJIcb/BtM6kc1ktz0lBxcG2dc3yMMJtuP+nxs
Acz15r5Fvt1/T23yZjslrlCxA4yg4+PAvxy/i9WSU2rZYQDatqzsEifixkROux1Ka1/fi
vZcXPq5NOkHeugSPmSsnedT/oOfO8tPCWbHIT6WS91h36UAnP58LjU7pR5gszeV6KbhiU
rqAl/Obtd6iUZObhagQfZRsUrJ6i88O3s4um6VpsBVv20dXo0UW6TOeT2SIvE6v+lLA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794553725;
h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:
X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From:
To:Cc:Subject:In-Reply-To:References:MIME-Version:Content-Type:
Content-Transfer-Encoding:Date:Message-ID;
bh=m5gdk+W3xc3fFZcALv8c+D0FiAHcjAVtduRb63rDx+E=;
b=wnp5nAL/eA4dTicF67vfcjgs6URLrW6fns8/QWJ2fi5XoWZicKSBPSmaVR98ulwowrGD
ungMm4vyyqGJCXDkY2YPW9yfRG7Vaweyg4L4aq/mJziXiLkb104jl+U8WZeEVRAJtGhqn
BtXmbJ5AszkFPJt5t5NDSELu8S20gr6Itc95WRxNHUQ+5zyM7sLUMyrdthzpr3kR6gH3C
vC6ruuGIVZpsluQ9ag25UaZa8Khz6SyEsTdsNvnyUQ5lIJcTOB/N/psZgul8FNpyMAJua
+gMYsTfrA5w5crH7k5JiUmDhZWPf7f9EM9mc7f80t5T4rK84b3o+xugT87QUDM5Z80g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=cmss.chinamobile.com;
spf=pass smtp.mailfrom=cmss.chinamobile.com;
dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=wZo9or7+;
arc=none smtp.remote-ip=111.22.67.135
X-Received: from cmccmta2.chinamobile.com (cmccmta2.chinamobile.com [111.22.67.135])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AF51606A332;
Fri, 13 Nov 2026 07:08:42 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4AF51606A332
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=cmss.chinamobile.com; s=default; l=0;
h=from:subject:message-id:to:cc:mime-version;
bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=;
b=wZo9or7+nayuao3oIBZYldvfUXy/6D1ZTyPx85wWgmubcejTItbvAS1PmScF11gEdyY1hWYTGr0Tj
NvzmPR2ZAb12mGxqPWIgy9MWvCe/XHFWIX/P/DvE2VTD0H/N3Pej1qVl2NBF2e1gU/co2LA1TCxTE9
CCnjY+/dvrKn2ueY=
X-RM-TagInfo: emlType=0
X-RM-SPAM-FLAG: 00000000
X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87])
by rmmx-syy-dmz-app03-12003 (RichMail) with SMTP id 2ee36af6b76b755-b512f;
Fri, 13 Nov 2026 15:08:27 +0800 (CST)
X-RM-TRANSID: 2ee36af6b76b755-b512f
X-RM-TagInfo: emlType=0
X-RM-SPAM-FLAG: 00000000
X-Received: from [198.18.0.35] (unknown[223.108.79.101])
by rmsmtp-syy-appsvr06-12006 (RichMail) with SMTP id 2ee66af6b76a94e-1c0e5;
Fri, 13 Nov 2026 15:08:27 +0800 (CST)
X-RM-TRANSID: 2ee66af6b76a94e-1c0e5
X-Cc: netdev@vger.kernel.org,
dsahern@kernel.org,
idosch@nvidia.com,
davem@davemloft.net,
edumazet@kernel.org,
pabeni@redhat.com,
horms@kernel.org,
linux-kernel@vger.kernel.org,
kuniyu@google.com,
xeb@mail.ru,
yana06070@163.com,
netdev-bot+sashiko@kernel.org
X-In-Reply-To: <20261110205838.2246603-1-kuba@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list