From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDD731B26E; Wed, 3 Jan 2024 15:38:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KWO8kaBY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7673FC433C7; Wed, 3 Jan 2024 15:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704296310; bh=j4CKFm4QyoiuZcjYsJJZiQW0OE/euYVulADdZIAEL1A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=KWO8kaBYwn1a66Tbdr8uOQXpPdSaCYuu/lYqEtzX3gdI2ZE6GorSXwAdT++E8Dh6X Yfb4jhy7k1ase4KReKPVGR4jybyWatsdTmO4AmBrZzUwp7xA0p9xDCkJC3D9ovLgyo +GGKfZ3XstirY1uJDLfJr6Oj4o1q96Ld+qJXjNpsIjRkQCHrk/j7B7TErDghU5SKGI rmbOuu0UsDahbZfK+IodTYC1Zrum7oTlm6HqLWJg2h8jf8rLyTq4EAREU4msGrbWmy soMU4njy6cPcODss5dTXRNBsRXxsV6Rlc/bGuZwN4SieXvkWgWmK3o8T9fmSIz3KtX zTL/NUubenr6g== Message-ID: <37a6dd80-6914-4865-967a-9dfa90f1adea@kernel.org> Date: Wed, 3 Jan 2024 08:38:29 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2 1/2] rtnetlink: allow to set iface down before enslaving it Content-Language: en-US To: Nicolas Dichtel , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , Phil Sutter Cc: netdev@vger.kernel.org, stable@vger.kernel.org References: <20240103094846.2397083-1-nicolas.dichtel@6wind.com> <20240103094846.2397083-2-nicolas.dichtel@6wind.com> From: David Ahern In-Reply-To: <20240103094846.2397083-2-nicolas.dichtel@6wind.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/3/24 2:48 AM, Nicolas Dichtel wrote: > The below commit adds support for: >> ip link set dummy0 down >> ip link set dummy0 master bond0 up > > but breaks the opposite: >> ip link set dummy0 up >> ip link set dummy0 master bond0 down > > Let's add a workaround to have both commands working. > > Cc: stable@vger.kernel.org > Fixes: a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up") > Signed-off-by: Nicolas Dichtel > Acked-by: Phil Sutter > --- > net/core/rtnetlink.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > Reviewed-by: David Ahern