Re: [PATCH net-next] selftests: drv-net: enable devmem TCP in the test config

Mina Almasry <[email protected]>
Newsgroups gmane.linux.kernel.bpf,gmane.linux.network,gmane.linux.kernel
Message-ID <CAHS8izN2q1n4VEoTQ9PcMRCwBrekQx=hXXZ0QK53U9xzXfxhSA@mail.gmail.com>
On Fri, Jul 31, 2026 at 4:38 PM Bobby Eshleman <[email protected]> wrote:
>
> From: Bobby Eshleman <[email protected]>
>
> The config fragment already sets CONFIG_UDMABUF=y, but kconfig silently
> drops it. UDMABUF/NET_DEVMEM both depend on DMA_SHARED_BUFFER, which we
> can't enable directly, so we need to enable a config that selects it. We
> use SYNC_FILE for that purpose here.
>
> Additionally, we flip on CONFIG_NET_DEVMEM as well.
>
> Suggested-by: Jakub Kicinski <[email protected]>
> Signed-off-by: Bobby Eshleman <[email protected]>

While hacky, I think it's okay to find something that enables
DMA_SHARED_BUFFER for us here.

Reviewed-by: Mina Almasry <[email protected]>

> ---
>  tools/testing/selftests/drivers/net/hw/config | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tools/testing/selftests/drivers/net/hw/config b/tools/testing/selftests/drivers/net/hw/config
> index ed8642b68094..d89a9ba17655 100644
> --- a/tools/testing/selftests/drivers/net/hw/config
> +++ b/tools/testing/selftests/drivers/net/hw/config
> @@ -15,11 +15,13 @@ CONFIG_IPV6_SIT=y
>  CONFIG_IPV6_TUNNEL=y
>  CONFIG_NET_CLS_ACT=y
>  CONFIG_NET_CLS_BPF=y
> +CONFIG_NET_DEVMEM=y
>  CONFIG_NET_IPGRE=y
>  CONFIG_NET_IPGRE_DEMUX=y
>  CONFIG_NET_IPIP=y
>  CONFIG_NETKIT=y
>  CONFIG_NET_SCH_INGRESS=y
> +CONFIG_SYNC_FILE=y
>  CONFIG_UDMABUF=y
>  CONFIG_USER_NS=y
>  CONFIG_VXLAN=y
>
> ---
> base-commit: 2fbade66245059c78daeaccfce13ecf499fffb51
> change-id: 20260731-selftests-devmem-config-f4f843f0f0ad
>
> Best regards,
> --
> Bobby Eshleman <[email protected]>
>
>


-- 
Thanks,
Mina
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.