OSDN Git Service

selftests: net: tcp_mmap: Use huge pages in send path
authorEric Dumazet <edumazet@google.com>
Thu, 20 Aug 2020 17:11:17 +0000 (10:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:14:53 +0000 (16:14 -0700)
commit72653ae5303c626ca29fcbcbb8165a894a104adf
treed012105f74f9dea75e9dce85dc01ce5246efdf80
parent0d89419319ef68f8acc1b78377ad3e7523fead4a
selftests: net: tcp_mmap: Use huge pages in send path

There are significant gains using huge pages when
available, as shown in [1].

This patch adds mmap_large_buffer() and uses it
in client side (tx path of this reference tool)

Following patch will use the feature for server side.

[1] https://patchwork.ozlabs.org/project/netdev/patch/20200820154359.1806305-1-edumazet@google.com/

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Arjun Roy <arjunroy@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tcp_mmap.c