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 88B462EA720; Fri, 26 Sep 2025 13:56:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758894992; cv=none; b=HI8gaDyxtRTeEX4jLWiw/7Rg3V/HZI9doyPoSHYSh6n/ZDbJMPQw5gRI9hgWcXCP+6fLfh32G0fkBETLiKWlCW+5vFWWpzjOlOMyXd/DnjnXMRG6Vzf86mgsNG5B1lsF4YLp/6qypJdEDR3nxPTA8H3RwnSdL8/f6i3HBClXPbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758894992; c=relaxed/simple; bh=wE4qm/XFAF6PofdQiAMe4TLAsgZTwK5tew5yBqY82mQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N9JxhAL+JyiU6WDj9X/8r6o1ZxmYtHB5VArHe0YLRTYz1awpXDCUZDkbGoAclqFO0XkgbBESivt0vYeMwqygzerKIBR6WwX4TJ5cpI4uu6FwxFkMA0MhpkGqQzzuRGKHb5GmGtI/rFqMM4to5/IQPYMY/UyUz2L/ARDfHHejw9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WTdsmncl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WTdsmncl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42797C4CEF4; Fri, 26 Sep 2025 13:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758894992; bh=wE4qm/XFAF6PofdQiAMe4TLAsgZTwK5tew5yBqY82mQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WTdsmnclmxsx8BMx2qs0MlXbF2wXq4woNoMfxNjYlricpH7cySPpEz1zPE06CgSvO 2HK5nvVFrX8qoY5kqHI0wX35USx/ywR/V3CzEkBuZ7zDNC40paDRj0b+F/Zv1Wk47U 6UOc+RYx/2VqpJ5Bzm/3Q336CiGjPz5w9KUr1snTfapYTnY+hJws42abHx0srTpLwk asGMPlDJJ+b5Xo+CTLuWgOYVykDmTQTeGOT4f4QsSFMO7z9bCRCoKuCi9oZnxXY7mi hyvEft3FfwsE4OAjnjHDrdFpb/ThdIDwW0VRc767+3A0ZHegBNttcZj+A0dGAnkK7W e99FSENCkO55A== Date: Fri, 26 Sep 2025 14:56:27 +0100 From: Simon Horman To: Petr Machata Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, Ido Schimmel , Nikolay Aleksandrov , Shuah Khan , linux-kselftest@vger.kernel.org, mlxsw@nvidia.com, Alessandro Zanni , Hangbin Liu , David Yang , Li Shuang Subject: Re: [PATCH net-next 12/13] selftests: forwarding: lib: Add an autodefer variant of forwarding_enable() Message-ID: References: <78b752c40069cde21c44dcf4c7b966a76a0eef2c.1758821127.git.petrm@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78b752c40069cde21c44dcf4c7b966a76a0eef2c.1758821127.git.petrm@nvidia.com> On Thu, Sep 25, 2025 at 07:31:55PM +0200, Petr Machata wrote: > Most forwarding tests invoke forwarding_enable() to enable the router and > forwarding_restore() to restore the original configuration. Add a helper, > adf_forwarding_enable(), which is like forwarding_enable(), but takes care > of scheduling the cleanup automatically. > > Convert the tests that currently use defer to schedule the cleanup. > > Signed-off-by: Petr Machata Reviewed-by: Simon Horman