[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1f70600e-bb83-420f-98a6-b772781d5a3c@redhat.com>
Date: Tue, 25 Feb 2025 12:04:41 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Jaakko Karrenpalo <jkarrenpalo@...il.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Simon Horman <horms@...nel.org>,
Lukasz Majewski <lukma@...x.de>, MD Danish Anwar <danishanwar@...com>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
Jaakko Karrenpalo <jaakko.karrenpalo@...abb.com>
Subject: Re: [PATCH net-next v2 2/2] net: hsr: Add KUnit test for PRP
On 2/21/25 11:10 AM, Jaakko Karrenpalo wrote:
> From: Jaakko Karrenpalo <jaakko.karrenpalo@...abb.com>
>
> Add unit tests for the PRP duplicate detection
>
> Signed-off-by: Jaakko Karrenpalo <jaakko.karrenpalo@...abb.com>
> Signed-off-by: Jaakko Karrenpalo <jkarrenpalo@...il.com>
Only one of the above ;)
> ---
> Changes in v2:
> - Changed KUnit tests to compile as built-in only
>
> net/hsr/Kconfig | 14 +++
> net/hsr/Makefile | 2 +
> net/hsr/prp_dup_discard_test.c | 210 +++++++++++++++++++++++++++++++++
> 3 files changed, 226 insertions(+)
> create mode 100644 net/hsr/prp_dup_discard_test.c
>
> diff --git a/net/hsr/Kconfig b/net/hsr/Kconfig
> index 1b048c17b6c8..07fc0a768b7e 100644
> --- a/net/hsr/Kconfig
> +++ b/net/hsr/Kconfig
> @@ -38,3 +38,17 @@ config HSR
> relying on this code in a safety critical system!
>
> If unsure, say N.
> +
> +config PRP_DUP_DISCARD_KUNIT_TEST
> + bool "PRP duplicate discard KUnit tests" if !KUNIT_ALL_TESTS
IMHO kunits module are better suited to be tristate. Export the HSR
symbols as needed (when PRP_DUP_DISCARD_KUNIT_TEST=m) and add the needed
MODULE_ boilerplate
Thanks,
Paolo
Powered by blists - more mailing lists