Article View: linux.kernel.netdev
Article #19881Re: [PATCH net v2] bonding: reject a non-Ethernet 802.3ad slave even when the type matches
From: Kyuwon Cho
Date: Fri, 20 Nov 2026 15:29
Date: Fri, 20 Nov 2026 15:29
21 lines
11707 bytes
11707 bytes
On Thu, Nov 19, 2026 at 06:01:55PM +0800, Hangbin Liu wrote: > Hmm, should we also check and set the bond device type back to Ethernet > when set mode to 8023AD? With this patch the leftover type should not matter for 802.3ad: the mode can only be changed while the bond has no slaves, every slave of an 802.3ad bond now has to be an Ethernet device, and enslaving the first one turns the bond back into an Ethernet device through bond_ether_setup(). I checked that on this patch: a bond left as ARPHRD_TUNNEL6 stays so after the mode change, becomes ARPHRD_ETHER when the first Ethernet slave is added, and comes up fine. Resetting the type at the mode change would also make an empty 802.3ad bond look like Ethernet, which seems a reasonable cleanup, but it changes the device type outside of enslave, so I would keep it out of this fix. I can send it separately for net-next if you and Jay think it is worth it. Thanks, Kyuwon Cho
Technical Details
Message-ID:
<179509928313.4181850.1728907555340063150@gmail.com>Path:
mbox-mo1.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-368000-linux-kernel-netdev=dewy.ruReferences:
<179505868590.3571070.12381528230330714812@gmail.com> <av7JE91kbL3gf8MS@fedora>Show Full Headers
Complete Article Headers
Path: mbox-mo1.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-368000-linux-kernel-netdev=dewy.ru
From: kyuwoncho18@gmail.com (Kyuwon Cho)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] bonding: reject a non-Ethernet 802.3ad slave even
when the type matches
Date: Fri, 20 Nov 2026 07:29:09 -0800 (PST)
Organization: Usenet Network
Message-ID: <179509928313.4181850.1728907555340063150@gmail.com>
References: <179505868590.3571070.12381528230330714812@gmail.com>
<av7JE91kbL3gf8MS@fedora>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="3206706"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WRLDJEygraQa9u17SPKEgl48Wqo= sha256:NlrpLe1mEk0dggOzT19hYkIZnvNjVH7FvxNh7Zk5qTQ=
sha1:COx17JFLJ1UZSw7HcUSsy1eoLig= sha256:X3i7inNfEccBKTxhVTLAZVQlJLmnEYgEqXcNmygQeio=
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 43680115A02; Fri, 20 Nov 2026 19:39:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.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 Wnwg8rQXD9C7;
Fri, 20 Nov 2026 19:39:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368000-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 378741159FE; Fri, 20 Nov 2026 19:39:09 +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 4F0D6144409; Fri, 20 Nov 2026 15:29:18 +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=1795188552;
b=OwR3hHRZknle1rdDPDMrtnrOHrhQzKTH4mUWQJibctoNscxUEoO5kEnGFIkjz7HtS2JL
RQGPi5E4eLboyNV+2EiHKJ70x4ezXX23ymBx+yKUGDBhj6kxw6RDHhDMVJWTmItHkWrTe
wzqtf3PFesgJIO5jykqnVAArfezqRCrYmq2WJO3WBVghij3N2Li5Jgj+E2wl1ts3+61jm
1vSozMwa26V3ePW5yBcWJejJVa8J1JOIwTf9mID1LnGkjvz2h17Gi45rxUzF6v7VE1pSV
i3d1hzbgblnTqF8v2J06UgMT+YWSoTkxoLA3/OEPFc2BtWf1+Ux85wPBRZZ9T9Mno2Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795188552;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:
Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version;
bh=Vhu55Pzlkvmu17gxKyXMYj6pL0x4NHh7A+EQNL/WuaE=;
b=OhPjzLnbNowgfu/KDN3eo7kX9O2Han5ZzW3ZBEpv7ETVSAEpoCkvGQSUzZWAlssOrZMK
DvqtiTZ/EcslFrfxtygRegiPAAwh0j9Br3yAJqu8S7oMZK3FfORFFYF85hWnsIbw2VfwK
i0QOzvTCHn5TELW7OZCd+j1aZcyONZBqAJ6yd67jYd/xI9tSLZ3bQWRYufhVP9akmiMH1
zLg9O6zmnhhhjs80Qm09S/5mTMYfjMIqSnRqeOLEsxLOeKXzlzbH8BEQB2Pirsn7pW9g8
HL27bHbYUx01VqtsV7UrgkqfAtc6YeIzRDoV8K7nGpNgf1btEbztnkSaeMLraCh1uIg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=p0Wd96+k;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.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 8B41B60A2608;
Fri, 20 Nov 2026 15:29:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=p0Wd96+k
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795188551;
b=kOJ0rtgzGkxzrQFBT4Ra8yrrlGirbLUlkIEaHoRtRElM1ubPfX8AwwM0f4hc3WNHS4tw
mqWGZcFVQImERo9QDLfPd11fJysyiyvbRaVsDw3hAJ6eMGN4e8fubEfu+IHa9ltCcdp0T
rCTbiGgtJpYcivJ89wagR+aGu1kP6tY+NGEan77t40KpRG20oKovKDhQxwmFBfVlzcVuG
ZsRjtWruGughu/1drOYQIVLaEGD11hpJNgjBbt0SLzyPLN15CGN1SgyNryRp6twWwxx8h
mf/eAPeL1ShKPBY12l0UktsPyH4GsEcTOkUHJ04WdGDJWqdD+c1NAFnSKF/hSnmVN+w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795188551;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:In-Reply-To:References:Message-ID:Content-Type:
Content-Transfer-Encoding:MIME-Version;
bh=Vhu55Pzlkvmu17gxKyXMYj6pL0x4NHh7A+EQNL/WuaE=;
b=pjwAh5UVJ9dpv1ZBttYpVI8n+wcPhgsBRVwP3cTabvwRCHzOKbTWOAH7mJlJvaEe1KcG
g2MC0+mtFRX6TxJWdPF5biXiLT8DHMu2I2fhGrhouaenxjU3i+3fjivyFSgCAx7qQplZU
pGir4JIQh13WP/ZYi9JutVWGDdX55sWsjDIL+X1ZPTYlGP5gfqfUttLbs7VIYQ6rsbzh6
Sey0ANFrhmHbvICbv0OWCjLpcBrqKx23N3jnAp3iGgRyNzOqKQ7+E3G2kJ0YPEXFdCg4f
e+Ou9/3sbEG4CTsJqogd0L88WSwZbDXX1ruTSJofxXBllyBoTtRPv4Xqh3HIJf3NA3g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=p0Wd96+k;
arc=none smtp.remote-ip=74.125.82.182
X-Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63AF6606A330
for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 15:29:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 63AF6606A330
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-3863db981d4so721723eec.0
for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 07:29:11 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795188550; x=1795793350; darn=vger.kernel.org;
h=mime-version:content-transfer-encoding:content-type:message-id
:references:in-reply-to:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=Vhu55Pzlkvmu17gxKyXMYj6pL0x4NHh7A+EQNL/WuaE=;
b=p0Wd96+kVxO+guCcOLTA3P1aCqsrboHkh+kTSzEiBzZoMdDWNL0IRclccjhpyckfJc
IXqF28qsDzGOX/9JY7UHAt4q74bcsiQ0x7gFASbjovtNoLbw5fquBA2d5iKHOIqnQb7L
7Z817vRmIL2yC5utzdLG9IHGb0Jxkzo/J9/5j45bPHV+AErU8z5xGVT9o3HMEWUbh1ox
552R21qZ7DloPUa7b7ZBtaQ9Wlh+V1ktcaoCdp0f03BdArzZys+GYap3o87DTiHuOuwY
a8NrC+yNrQRHhv/T4rniZThQNDlywp6xKUSlWJ/h4GMisQEHQNi0pzC6DvmqFq7atwQe
Ircg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795188550; x=1795793350;
h=mime-version:content-transfer-encoding:content-type:message-id
:references:in-reply-to:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=Vhu55Pzlkvmu17gxKyXMYj6pL0x4NHh7A+EQNL/WuaE=;
b=SqV1Nw8SaGJ7+iDp9I7lz5mVB4/q/meFi699ePubKe8elTpVcO+H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a478bee46e88-385fa10eefemr1888740eec.19.1795188550101;
Fri, 20 Nov 2026 07:29:10 -0800 (PST)
X-Received: from [172.21.0.2] (vldb.skku.ac.kr. [115.145.173.180])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38567abb870sm7705635eec.25.2026.11.20.07.29.08
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 20 Nov 2026 07:29:09 -0800 (PST)
X-Cc: netdev@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>,
Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org
X-In-Reply-To: <av7JE91kbL3gf8MS@fedora>
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