Article View: linux.kernel.netdev
Article #19087Re: [PATCH net v2] bonding: reject a non-Ethernet 802.3ad slave even when the type matches
From: Hangbin Liu
Date: Thu, 19 Nov 2026 10:01
Date: Thu, 19 Nov 2026 10:01
13 lines
8800 bytes
8800 bytes
On Wed, Nov 18, 2026 at 07:31:10PM -0800, Kyuwon Cho wrote:
> Commit c84fcb79e5db ("bonding: limit BOND_MODE_8023AD to Ethernet
> devices") rejects a non-Ethernet first slave in 802.3ad mode, but only
> when enslaving it changes the bond's type. A bond keeps the type of its
> last slave after that slave is released, so a bond that once had an
> ARPHRD_TUNNEL6 slave can be set to 802.3ad and take another TUNNEL6
Hmm, should we also check and set the bond device type back to Ethernet
when set mode to 8023AD?
Thanks
Hangbin
Technical Details
Message-ID:
<av7JE91kbL3gf8MS@fedora>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-366928-linux-kernel-netdev=dewy.ruReferences:
<179505868590.3571070.12381528230330714812@gmail.com>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-366928-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] bonding: reject a non-Ethernet 802.3ad slave even when the type matches Date: Thu, 19 Nov 2026 18:01:55 +0800 Organization: Usenet Network Message-ID: <av7JE91kbL3gf8MS@fedora> References: <179505868590.3571070.12381528230330714812@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2844215"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:LVSHEqye68iIBOxjjlQqiVxu/NI= sha256:EPTse795dYlA6/bb1h5/COSpl9MmQ9U2Jj353Bd7kX0= sha1:4ff6VmoLxG1noCmK0IiYD19A618= sha256:CtMUUMAySpd6q1Zw2UN7YOeYzIIopi9YQymsAkEjN2s= Content-Disposition: inline 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 0AE581155AF; Thu, 19 Nov 2026 13:02:34 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, 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=pass (1024-bit key) header.d=linux.dev 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 goMKdAQyYHrb; Thu, 19 Nov 2026 13:02:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366928-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 06AB31155AD; Thu, 19 Nov 2026 13:02:18 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 7D0F41C09BA; Thu, 19 Nov 2026 10:02:15 +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=1795082532; b=bFbea1E6GY2OLhdrHAntmwffcDPQ9IDPoQ8/zc5UadVfskI2jLM6mMS2wW0JJlGI4jYl q+Amm+QXXrAR7tXeUQFgLPg3fy30v6YwIk6nI2F09Yiu5ybE0e5JP7Gy0BVBCQ8/0+o9l c2WE0q/nNKX6n2qz7+TWXS9D7qrNQvoBoSkQCOAJyggL5qSENL1klzYUfBKib5+lBRNG+ X9o0SasbmdoasQm8HONgQu3KjQV+EqFaGFchboMp6+bbt8qOmZWCY9s5waklOckfSIDQ6 myMARHBXpx8j2pEo8IZrQpxbEJNp5T9wpiKSoFoW4g0j8ZB+WbPZ42fGmGpFHlz/gdw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795082532; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=5NRrnpPRoICcPwb9emd9JPNK8fUgBNANt3iXcgswqGE=; b=VcEg4sDE5S0Z6e80h0rXAPp2bummhhxpb2wJi+vHlcavIdzadvsaHVIoQ9D6I9QCFkYa MKcMdYoIGbPqoZHHeLxR1eZhRx6dKbpJ5bf/bnPgpEkHubHCBVm1kJcGc8KRjpTRnlHJu JEniUO1ILRFdJFH6bzu/gleMnl0U1zgDt2a6d8SY7jlVNnCgSOMH2AZfQpYcDbhTfinC+ bHkgqXFnXYMBRbT7qjnWPeGjTdoYnYBYTo6yMBE91NZahHKqCy/D5IqiaX9owJJnJenpW 7FnItoTEzdnPrT9jyzKegOJjfDKb4fueFEtnw4nVqfB4IJbsFES7yDfNJDBBjjEyNIg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=n1w2Palq; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; 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 A1745606A336; Thu, 19 Nov 2026 10:02:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=n1w2Palq X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.63 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795082531; b=FkZz+t93MnTbRdq08kCmcgQn6Dp9bvhrMLja2b3EJc5lsTqNlclGVGAmA89yTWXloQct FszJyoicKQ2mt2H2FvIuldCl+oKOVZM/T6MVBZz5hZCZsPb4tvhoiFtxqEDdAQZ+cLUxh E+pYT6ngGxPqSN84DPkdsVhT3msKbb79JhG9Hd3eaVw+FfXFMbqGRMgIQUYJUndCjiui/ 1hJ6L0ZoWwSjXXuRTUkl3pwNhODI/GFJ3HGKtsuPNYKq0atbYmzzuni2eHVMAzyBvhc0l YbDKBPaLjgpvjYrbMNsVIDIf9eR7n5RxYd6QmaRbTFFVMbB92OTop0DjyWkG0BdnK/g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795082531; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=5NRrnpPRoICcPwb9emd9JPNK8fUgBNANt3iXcgswqGE=; b=laVl0+QQTZZeaatee/g1PEb3vm1lwfK8rzZ6oqFflxX2h8UlDJfahcUOlxMoeJa11VLI 5d9tOD/xFJ6hTtNgOZIJkNiXIt5/EVhwJGBRfFICldpEA62vI/+s4tJWFNesJUPzxcnx6 qnF27qN4SDbP1SbrbjX18i33DGSJ2OWZuKn+Ej0+w+XVRgK6TY09ybtMIt3T6WL19WJjB ZrSxY5ORIilItAAxK7diPjrYP04gRakZJIaUlhc0x314kBE13cyV7iAXSksubu1rGflsU fS46WlAuA2PDIFnhSkt2HdZwj0a8ZGeAy2J+g2DXNCPLj/Tos166GVwmBs1HI8JNxlg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=n1w2Palq; arc=none smtp.remote-ip=91.218.175.63 X-Received: from mta0.migadu.com (out-63.mta0.migadu.com [91.218.175.63]) (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 6C993606A32A for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 10:02:10 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C993606A32A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=5NRrnpPRoICcPwb9emd9JPNK8fUgBNANt3iXcgswqGE=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795082527; v=1; x=1795687327; b=n1w2Palqw51RIj4ehrFUd0RyrRqxG7itpKZ+ojpJd62beyv52H47ocwl0hbORQz5Ni3vIZq4 LkGE1mf8BetPpirytgvOval7CtQHO1WCglMOfhiOuCQxcVuga+MRk3Av/O3D31MljQvK4NSnbfN kD021myx9h8eJOb8iTPV4zd8= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta11.migadu.com with ESMTPS id 8e2188403d20b602; Thu, 19 Nov 2026 10:02:07 +0000 X-Mizu-Trace-ID: 8e2188403d20b602 X-Migadu-Flow: FLOW_OUT 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-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 X-In-Reply-To: <179505868590.3571070.12381528230330714812@gmail.com>