From: Akihiko Odaki <akihiko.odaki@daynix.com>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
Jonathan Corbet <corbet@lwn.net>,
Jason Wang <jasowang@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
Shuah Khan <shuah@kernel.org>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, kvm@vger.kernel.org,
virtualization@lists.linux-foundation.org,
linux-kselftest@vger.kernel.org,
Yuri Benditovich <yuri.benditovich@daynix.com>,
Andrew Melnychenko <andrew@daynix.com>,
Stephen Hemminger <stephen@networkplumber.org>,
gur.stavi@huawei.com
Subject: Re: [PATCH v6 5/6] selftest: tun: Add tests for virtio-net hashing
Date: Fri, 10 Jan 2025 18:47:56 +0900 [thread overview]
Message-ID: <b645e3e3-b42a-4d7a-b5f1-8f8fd9eff0ee@daynix.com> (raw)
In-Reply-To: <677fdee2b56d_362bc129446@willemb.c.googlers.com.notmuch>
On 2025/01/09 23:36, Willem de Bruijn wrote:
> Akihiko Odaki wrote:
>> The added tests confirm tun can perform RSS and hash reporting, and
>> reject invalid configurations for them.
>>
>> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>> ---
>> tools/testing/selftests/net/Makefile | 2 +-
>> tools/testing/selftests/net/tun.c | 558 ++++++++++++++++++++++++++++++++++-
>> 2 files changed, 551 insertions(+), 9 deletions(-)
>>
>> diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile
>> index cb2fc601de66..92762ce3ebd4 100644
>> --- a/tools/testing/selftests/net/Makefile
>> +++ b/tools/testing/selftests/net/Makefile
>> @@ -121,6 +121,6 @@ $(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma
>> $(OUTPUT)/tcp_mmap: LDLIBS += -lpthread -lcrypto
>> $(OUTPUT)/tcp_inq: LDLIBS += -lpthread
>> $(OUTPUT)/bind_bhash: LDLIBS += -lpthread
>> -$(OUTPUT)/io_uring_zerocopy_tx: CFLAGS += -I../../../include/
>> +$(OUTPUT)/io_uring_zerocopy_tx $(OUTPUT)/tun: CFLAGS += -I../../../include/
>>
>> include bpf.mk
>> diff --git a/tools/testing/selftests/net/tun.c b/tools/testing/selftests/net/tun.c
>> index 463dd98f2b80..9424d897e341 100644
>> --- a/tools/testing/selftests/net/tun.c
>> +++ b/tools/testing/selftests/net/tun.c
>> @@ -2,21 +2,37 @@
>>
>> #define _GNU_SOURCE
>>
>> +#include <endian.h>
>> #include <errno.h>
>> #include <fcntl.h>
>> +#include <stddef.h>
>> #include <stdio.h>
>> #include <stdlib.h>
>> #include <string.h>
>> #include <unistd.h>
>> -#include <linux/if.h>
>> +#include <net/if.h>
>> +#include <netinet/ip.h>
>> +#include <sys/ioctl.h>
>> +#include <sys/socket.h>
>> +#include <linux/compiler.h>
>> +#include <linux/icmp.h>
>> +#include <linux/if_arp.h>
>> #include <linux/if_tun.h>
>> +#include <linux/ipv6.h>
>> #include <linux/netlink.h>
>> #include <linux/rtnetlink.h>
>> -#include <sys/ioctl.h>
>> -#include <sys/socket.h>
>> +#include <linux/sockios.h>
>> +#include <linux/tcp.h>
>> +#include <linux/udp.h>
>> +#include <linux/virtio_net.h>
>
> Are all these include changes strictly needed? Iff so, might as well
> fix ordering to be alphabetical (lexicographic).
>
Yes. I placed header files in linux/ after the other header files
because include/uapi/linux/libc-compat.h requires libc header files to
be placed before linux/ ones.
next prev parent reply other threads:[~2025-01-10 9:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 7:13 [PATCH v6 0/6] tun: Introduce virtio-net hashing feature Akihiko Odaki
2025-01-09 7:13 ` [PATCH v6 1/6] virtio_net: Add functions for hashing Akihiko Odaki
2025-01-09 14:13 ` Willem de Bruijn
2025-01-10 9:28 ` Akihiko Odaki
2025-01-09 7:13 ` [PATCH v6 2/6] net: flow_dissector: Export flow_keys_dissector_symmetric Akihiko Odaki
2025-01-09 7:13 ` [PATCH v6 3/6] tun: Introduce virtio-net hash feature Akihiko Odaki
2025-01-09 14:28 ` Willem de Bruijn
2025-01-10 9:32 ` Akihiko Odaki
2025-01-09 7:13 ` [PATCH v6 4/6] selftest: tun: Test vnet ioctls without device Akihiko Odaki
2025-01-09 7:13 ` [PATCH v6 5/6] selftest: tun: Add tests for virtio-net hashing Akihiko Odaki
2025-01-09 14:36 ` Willem de Bruijn
2025-01-10 9:47 ` Akihiko Odaki [this message]
2025-01-09 7:13 ` [PATCH v6 6/6] vhost/net: Support VIRTIO_NET_F_HASH_REPORT Akihiko Odaki
2025-01-09 14:07 ` [PATCH v6 0/6] tun: Introduce virtio-net hashing feature Willem de Bruijn
2025-01-10 7:36 ` Lei Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b645e3e3-b42a-4d7a-b5f1-8f8fd9eff0ee@daynix.com \
--to=akihiko.odaki@daynix.com \
--cc=andrew@daynix.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gur.stavi@huawei.com \
--cc=jasowang@redhat.com \
--cc=kuba@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=stephen@networkplumber.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=willemdebruijn.kernel@gmail.com \
--cc=xuanzhuo@linux.alibaba.com \
--cc=yuri.benditovich@daynix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox