From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dic7V-00077P-PU for qemu-devel@nongnu.org; Fri, 18 Aug 2017 03:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dic7Q-000746-G9 for qemu-devel@nongnu.org; Fri, 18 Aug 2017 03:55:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38424) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dic7Q-00073d-7G for qemu-devel@nongnu.org; Fri, 18 Aug 2017 03:55:00 -0400 Date: Fri, 18 Aug 2017 09:54:48 +0200 From: Cornelia Huck Message-ID: <20170818095448.226fc4e9.cohuck@redhat.com> In-Reply-To: <98d06e4e-b0e9-9a44-195a-3aab6f3cf219@redhat.com> References: <1502951113-4246-1-git-send-email-thuth@redhat.com> <1502951113-4246-3-git-send-email-thuth@redhat.com> <20170817104122.4d72674b.cohuck@redhat.com> <98d06e4e-b0e9-9a44-195a-3aab6f3cf219@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/6] tests: Add network filter tests to the check-qtest-s390x list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, Christian Borntraeger , David Hildenbrand , Claudio Imbrenda , Dong Jia Shi , Eric Farman , Zhang Chen , Farhan Ali , Fei Li , Halil Pasic , Janosch Frank , Jason J Herne , Jing Liu , Pierre Morel , QingFeng Hao , Xiao Feng Ren , Yang Chen , Yi Min Zhao , Yang Hongyang , Cleber Rosa , Michael S Tsirkin On Thu, 17 Aug 2017 16:02:00 +0200 Thomas Huth wrote: > On 17.08.2017 10:41, Cornelia Huck wrote: > > On Thu, 17 Aug 2017 08:25:09 +0200 > > Thomas Huth wrote: > > > >> With some small modifications, we can also use the the netfilter, > >> the fiter-mirror and the filter-redirector tests on s390x. > > > > s/fiter/filter/ > > OK ... could you please fix that when picking up the patch (in case I do > not have to resend)? Sure. > > >> > >> Signed-off-by: Thomas Huth > >> --- > >> tests/Makefile.include | 3 +++ > >> tests/test-filter-mirror.c | 9 +++++++-- > >> tests/test-filter-redirector.c | 22 ++++++++++++++++------ > >> tests/test-netfilter.c | 11 ++++++++++- > >> 4 files changed, 36 insertions(+), 9 deletions(-) > >> > > > >> diff --git a/tests/test-filter-mirror.c b/tests/test-filter-mirror.c > >> index a1d5865..d569d27 100644 > >> --- a/tests/test-filter-mirror.c > >> +++ b/tests/test-filter-mirror.c > >> @@ -25,6 +25,11 @@ static void test_mirror(void) > >> char *recv_buf; > >> uint32_t size = sizeof(send_buf); > >> size = htonl(size); > >> + const char *devstr = "e1000"; > >> + > >> + if (g_str_equal(qtest_get_arch(), "s390x")) { > >> + devstr = "virtio-net-ccw"; > >> + } > > > > I'm wondering if we could unify selection of the network device > > somehow. There's probably two cases: > > - Test a specific device. This obviously needs to be decided > > individually. > > - Just use a functional network device. For s390x, this will be > > virtio-net-ccw; for other architectures, this test uses e1000, while > > one of the tests below uses rtl8139 (why?). A helper for that may be > > useful. > > Maybe ... OTOH, this likely increases also test coverage if we do not > use the same PCI NIC in all the tests...? It just looks like a bit of unneeded churn to me. Re coverage: Do we have a very simple test that we can run for all kind of NICs? This would give some reliable testing for various devices instead of having to rely on people picking different devices for their tests...