Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) (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 3E08173455 for ; Wed, 19 Jun 2024 07:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718781309; cv=none; b=fu93W/GaLS7PtXICCgCOqd3v/ncOSXfz+MFcmJ/ykVgUCnNFowaIIdk4alDAfxMqspwskmaND7yVCFC5B6jnR47C2HyiwvcyYeeRKfwJXrUwGkpB9nym67kZQkSWRjvHZ+DDrJj4kvJoGcv+D4RIXyEfkELgW4fqCrHUPLDd16Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718781309; c=relaxed/simple; bh=3lVfdIS/PDZk4mM0tQcF8ACe6odg3yGiJ3kP1q2n/9o=; h=Message-ID:Subject:Date:From:To:Cc:References:In-Reply-To; b=IhCCnYaacEjSHhZGku+3tULYRuw+h//1Brh7N8q8/Df2mqiT1Gk+mTD9EOVIK9mvNJs1S9/PHvN17nPjemDPnGn/A7/x2hl1kNhKI25f3vxmBCwtfHLGDXEmgfA3FgBR9tYoWtoY29LBeE5DB/7dHWKJMsKsY1vIhzWI4+4A5GA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=xMaJeVn3; arc=none smtp.client-ip=115.124.30.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="xMaJeVn3" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1718781304; h=Message-ID:Subject:Date:From:To; bh=NuQqSmn0tn1acQ3nlTazL+ODV+eVWhc4qW4UMPGUEx0=; b=xMaJeVn3/X6qHFN+f2ep3LhAiaC3fka0SeRevf2TXovcNR8vUHgw/wM5JKap2g3ZqN71ufEllVvuZETnpcrfQhdBoCHX8ZiwOgKzwJoRFymVlyKSVhsYsP40g0mUo7OhN9yxreIqWDmHhQHXM4zhc7/cYtMvluVHfGkl/wKsDfM= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R521e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067112;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0W8n8W-S_1718781301; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0W8n8W-S_1718781301) by smtp.aliyun-inc.com; Wed, 19 Jun 2024 15:15:02 +0800 Message-ID: <1718781295.6323366-1-xuanzhuo@linux.alibaba.com> Subject: Re: [PATCH net] selftests: virtio_net: add forgotten config options Date: Wed, 19 Jun 2024 15:14:55 +0800 From: Xuan Zhuo To: Jiri Pirko Cc: kuba@kernel.org, matttbe@kernel.org, mst@redhat.com, jasowang@redhat.com, eperezma@redhat.com, shuah@kernel.org, petrm@nvidia.com, pabeni@redhat.com, linux-kselftest@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org References: <20240619061748.1869404-1-jiri@resnulli.us> In-Reply-To: <20240619061748.1869404-1-jiri@resnulli.us> Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: On Wed, 19 Jun 2024 08:17:48 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > One may use tools/testing/selftests/drivers/net/virtio_net/config > for example for vng build command like this one: > $ vng -v -b -f tools/testing/selftests/drivers/net/virtio_net/config > > In that case, the needed kernel config options are not turned on. > Add the missed kernel config options. > > Reported-by: Jakub Kicinski > Closes: https://lore.kernel.org/netdev/20240617072614.75fe79e7@kernel.org/ > Reported-by: Matthieu Baerts > Closes: https://lore.kernel.org/netdev/1a63f209-b1d4-4809-bc30-295a5cafa296@kernel.org/ > Fixes: ccfaed04db5e ("selftests: virtio_net: add initial tests") > Signed-off-by: Jiri Pirko Reviewed-by: Xuan Zhuo > --- > tools/testing/selftests/drivers/net/virtio_net/config | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/testing/selftests/drivers/net/virtio_net/config b/tools/testing/selftests/drivers/net/virtio_net/config > index f35de0542b60..040b600d52f1 100644 > --- a/tools/testing/selftests/drivers/net/virtio_net/config > +++ b/tools/testing/selftests/drivers/net/virtio_net/config > @@ -1,2 +1,8 @@ > CONFIG_VIRTIO_NET=y > CONFIG_VIRTIO_DEBUG=y > +CONFIG_NET_L3_MASTER_DEV=y > +CONFIG_IPV6_MULTIPLE_TABLES=y > +CONFIG_NET_VRF=m > +CONFIG_BPF_SYSCALL=y > +CONFIG_CGROUP_BPF=y > +CONFIG_IPV6=y > -- > 2.45.1 >