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 373C41BDCE for ; Wed, 3 Jan 2024 16:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e/yDUxZB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CAE5C433C7; Wed, 3 Jan 2024 16:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704299767; bh=2JvocjoafpLAZMtUkb0lZ2Ycd46t524yDdLDrLMComs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=e/yDUxZB22IMtyp8gmuNQUkEl/Ia+Wb2q9fWKeXDgrUddy5Oc1m2TYuWgUJYU/BHU jytcL6Wgy3zbwq3/yWqP1HQ3R0eTniY6S7MpEB9RN/6GDKdN4ewVsJ8VCxVM+41XR/ HD6KcKR23FAQTSuJHr9dO842Wfvf+CrxqU/CvastjMnMDXn7gVVa1zHKiq9PL00yCR OPTmeOT1cVYk+nQX/2r/QvZOUZFdcKkBbBZvLkFU9/3YoC167yq1iMIrM2ZRPVMdOu a6ar9yai5naj1kzP9O3C+w3Qr+nKrZW6CjF5pLbOMUfM3XdMswA0Cy1FdgO9VAhmzV adf7C6+fYKXeQ== Message-ID: <3e9e4f3a-8968-4009-9e93-fe0bc8121392@kernel.org> Date: Wed, 3 Jan 2024 09:36:06 -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 2/2] selftests: rtnetlink: check enslaving iface in a bond Content-Language: en-US To: nicolas.dichtel@6wind.com, "David S . Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , Phil Sutter Cc: netdev@vger.kernel.org References: <20240103094846.2397083-1-nicolas.dichtel@6wind.com> <20240103094846.2397083-3-nicolas.dichtel@6wind.com> <2b3084da-ab85-412d-a0e8-3e50903937df@kernel.org> <0cc0cfc3-14d3-43d9-8fa8-b2b76b1ca14e@6wind.com> From: David Ahern In-Reply-To: <0cc0cfc3-14d3-43d9-8fa8-b2b76b1ca14e@6wind.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 1/3/24 9:17 AM, Nicolas Dichtel wrote: > Le 03/01/2024 à 16:42, David Ahern a écrit : >> On 1/3/24 2:48 AM, Nicolas Dichtel wrote: >>> @@ -1239,6 +1240,44 @@ kci_test_address_proto() >>> return $ret >>> } >>> >>> +kci_test_enslave_bonding() >>> +{ >>> + local testns="testns" >>> + local bond="bond123" >>> + local dummy="dummy123" >>> + local ret=0 >>> + >>> + run_cmd ip netns add "$testns" >>> + if [ $? -ne 0 ]; then >>> + end_test "SKIP bonding tests: cannot add net namespace $testns" >>> + return $ksft_skip >>> + fi >>> + >>> + # test native tunnel >>> + run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr >>> + run_cmd ip -netns $testns link add dev $dummy type dummy >>> + run_cmd ip -netns $testns link set dev $dummy up >>> + run_cmd ip -netns $testns link set dev $dummy master $bond down >>> + if [ $ret -ne 0 ]; then >>> + end_test "FAIL: enslave an up interface in a bonding" >> >> interface is up, being put as a port on a bond and taken down at the >> same time. That does not match this error message. > The idea was "the command used to enslave an up interface fails". > What about: "FAIL: set down and enslave an up interface in a bonding" The 'set down' is part of the adding to the bond command. how about: FAIL: Initially up interface added to a bond and set down.