* [PATCH v2] selftests: can: enable CONFIG_CAN_VCAN as a module
@ 2025-09-01 16:07 Davide Caratti
2025-09-02 5:42 ` Vincent Mailhol
2025-09-02 7:41 ` Vincent Mailhol
0 siblings, 2 replies; 3+ messages in thread
From: Davide Caratti @ 2025-09-01 16:07 UTC (permalink / raw)
To: Oliver Hartkopp, Marc Kleine-Budde, Felix Maurer, Vincent Mailhol,
linux-can
A proper kernel configuration for running kselftest can be obtained with:
$ yes | make kselftest-merge
Build of 'vcan' driver is currently missing, while the other required knobs
are already there because of net/link_netns.py [1]. Add a config file in
selftests/net/can to store the minimum set of kconfig needed for CAN
selftests. While at it, move existing CAN-related knobs from selftests/net
to selftests/net/can.
[1] https://patch.msgid.link/20250219125039.18024-14-shaw.leon@gmail.com
V2:
- move CAN-related knobs needed by [1] into selftests/net/can (thanks
Vincent Mailhol); remove enabling of CAN_RAW and CAN_NETLINK since
Kconfig already implies them
Fixes: 77442ffa83e8 ("selftests: can: Import tst-filter from can-tests")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
tools/testing/selftests/net/can/config | 4 ++++
tools/testing/selftests/net/config | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
create mode 100644 tools/testing/selftests/net/can/config
diff --git a/tools/testing/selftests/net/can/config b/tools/testing/selftests/net/can/config
new file mode 100644
index 000000000000..0cb5598eb702
--- /dev/null
+++ b/tools/testing/selftests/net/can/config
@@ -0,0 +1,4 @@
+CONFIG_CAN=m
+CONFIG_CAN_DEV=m
+CONFIG_CAN_VXCAN=m
+CONFIG_CAN_VCAN=m
diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
index c24417d0047b..18bec89c77b9 100644
--- a/tools/testing/selftests/net/config
+++ b/tools/testing/selftests/net/config
@@ -120,9 +120,6 @@ CONFIG_XFRM_USER=m
CONFIG_IP_NF_MATCH_RPFILTER=m
CONFIG_IP6_NF_MATCH_RPFILTER=m
CONFIG_IPVLAN=m
-CONFIG_CAN=m
-CONFIG_CAN_DEV=m
-CONFIG_CAN_VXCAN=m
CONFIG_NETKIT=y
CONFIG_NET_PKTGEN=m
CONFIG_IPV6_ILA=m
--
2.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] selftests: can: enable CONFIG_CAN_VCAN as a module
2025-09-01 16:07 [PATCH v2] selftests: can: enable CONFIG_CAN_VCAN as a module Davide Caratti
@ 2025-09-02 5:42 ` Vincent Mailhol
2025-09-02 7:41 ` Vincent Mailhol
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Mailhol @ 2025-09-02 5:42 UTC (permalink / raw)
To: Marc Kleine-Budde, linux-can
Cc: Davide Caratti, Oliver Hartkopp, Felix Maurer
On 02/09/2025 at 01:07, Davide Caratti wrote:
> A proper kernel configuration for running kselftest can be obtained with:
>
> $ yes | make kselftest-merge
>
> Build of 'vcan' driver is currently missing, while the other required knobs
> are already there because of net/link_netns.py [1]. Add a config file in
> selftests/net/can to store the minimum set of kconfig needed for CAN
> selftests. While at it, move existing CAN-related knobs from selftests/net
> to selftests/net/can.
>
> [1] https://patch.msgid.link/20250219125039.18024-14-shaw.leon@gmail.com
>
> V2:
> - move CAN-related knobs needed by [1] into selftests/net/can (thanks
> Vincent Mailhol); remove enabling of CAN_RAW and CAN_NETLINK since
> Kconfig already implies them
It is preferable to put the changelog after the --- cutter. There is no real
added value to keep the patch changelog in the git history. And people who
really wants to know the details will be able to access it using the thread link
that will be added when picking the patch.
> Fixes: 77442ffa83e8 ("selftests: can: Import tst-filter from can-tests")
> Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Regardless of above nitpick:
Reviewed-by: Vincent Mailhol <mailhol@kernel.org>
Yours sincerely,
Vincent Mailhol
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] selftests: can: enable CONFIG_CAN_VCAN as a module
2025-09-01 16:07 [PATCH v2] selftests: can: enable CONFIG_CAN_VCAN as a module Davide Caratti
2025-09-02 5:42 ` Vincent Mailhol
@ 2025-09-02 7:41 ` Vincent Mailhol
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Mailhol @ 2025-09-02 7:41 UTC (permalink / raw)
To: Davide Caratti, Marc Kleine-Budde, linux-can
Cc: Oliver Hartkopp, Felix Maurer
On 02/09/2025 at 01:07, Davide Caratti wrote:
> A proper kernel configuration for running kselftest can be obtained with:
>
> $ yes | make kselftest-merge
>
> Build of 'vcan' driver is currently missing, while the other required knobs
> are already there because of net/link_netns.py [1]. Add a config file in
> selftests/net/can to store the minimum set of kconfig needed for CAN
> selftests. While at it, move existing CAN-related knobs from selftests/net
> to selftests/net/can.
>
> [1] https://patch.msgid.link/20250219125039.18024-14-shaw.leon@gmail.com
>
> V2:
> - move CAN-related knobs needed by [1] into selftests/net/can (thanks
> Vincent Mailhol); remove enabling of CAN_RAW and CAN_NETLINK since
> Kconfig already implies them
>
> Fixes: 77442ffa83e8 ("selftests: can: Import tst-filter from can-tests")
> Signed-off-by: Davide Caratti <dcaratti@redhat.com>
> ---
> tools/testing/selftests/net/can/config | 4 ++++
> tools/testing/selftests/net/config | 3 ---
> 2 files changed, 4 insertions(+), 3 deletions(-)
> create mode 100644 tools/testing/selftests/net/can/config
>
> diff --git a/tools/testing/selftests/net/can/config b/tools/testing/selftests/net/can/config
> new file mode 100644
> index 000000000000..0cb5598eb702
> --- /dev/null
> +++ b/tools/testing/selftests/net/can/config
> @@ -0,0 +1,4 @@
> +CONFIG_CAN=m
> +CONFIG_CAN_DEV=m
> +CONFIG_CAN_VXCAN=m
> +CONFIG_CAN_VCAN=m
One more nitpick: can you also sort the line in alphabetic order?
CONFIG_CAN=m
CONFIG_CAN_DEV=m
CONFIG_CAN_VCAN=m
CONFIG_CAN_VXCAN=m
(VXCAN after VCAN)
> diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
> index c24417d0047b..18bec89c77b9 100644
> --- a/tools/testing/selftests/net/config
> +++ b/tools/testing/selftests/net/config
> @@ -120,9 +120,6 @@ CONFIG_XFRM_USER=m
> CONFIG_IP_NF_MATCH_RPFILTER=m
> CONFIG_IP6_NF_MATCH_RPFILTER=m
> CONFIG_IPVLAN=m
> -CONFIG_CAN=m
> -CONFIG_CAN_DEV=m
> -CONFIG_CAN_VXCAN=m
> CONFIG_NETKIT=y
> CONFIG_NET_PKTGEN=m
> CONFIG_IPV6_ILA=m
Yours sincerely,
Vincent Mailhol
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-02 7:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-01 16:07 [PATCH v2] selftests: can: enable CONFIG_CAN_VCAN as a module Davide Caratti
2025-09-02 5:42 ` Vincent Mailhol
2025-09-02 7:41 ` Vincent Mailhol
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).