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 D6C7A1ED38 for ; Tue, 25 Jul 2023 11:14:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5979BC433C9; Tue, 25 Jul 2023 11:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690283676; bh=q7oJ6YKOzNZaQJOd2FAe5ivTa/iDeZeS5GNDX6B4o4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yy+yO8y3lac+FXD6Fhc4hc7NVPM9TjLY15gImWv+NFhy4lTCYJVPl1kyVHyCirjIq ZAzc0t4saW+rlAGxO++LfYy+OAI7w/LelcXi9d/7liJh6Cdpk/IakTW90pOD6S2djO 8tTWV82cjznXM4mU8B1yAtG9vdLW54scGaeVV2WI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sabrina Dubroca , Simon Horman , Jiri Pirko , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 082/509] selftests: rtnetlink: remove netdevsim device after ipsec offload test Date: Tue, 25 Jul 2023 12:40:21 +0200 Message-ID: <20230725104557.465768801@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230725104553.588743331@linuxfoundation.org> References: <20230725104553.588743331@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Sabrina Dubroca [ Upstream commit 5f789f103671fec3733ebe756e56adf15c90c21d ] On systems where netdevsim is built-in or loaded before the test starts, kci_test_ipsec_offload doesn't remove the netdevsim device it created during the test. Fixes: e05b2d141fef ("netdevsim: move netdev creation/destruction to dev probe") Signed-off-by: Sabrina Dubroca Reviewed-by: Simon Horman Reviewed-by: Jiri Pirko Link: https://lore.kernel.org/r/e1cb94f4f82f4eca4a444feec4488a1323396357.1687466906.git.sd@queasysnail.net Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- tools/testing/selftests/net/rtnetlink.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh index c3a905923ef29..cbf166df57da7 100755 --- a/tools/testing/selftests/net/rtnetlink.sh +++ b/tools/testing/selftests/net/rtnetlink.sh @@ -835,6 +835,7 @@ EOF fi # clean up any leftovers + echo 0 > /sys/bus/netdevsim/del_device $probed && rmmod netdevsim if [ $ret -ne 0 ]; then -- 2.39.2