]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit658d945f9f8db717eecaa9f1a7dc3d88cb4c3325
treed012105f74f9dea75e9dce85dc01ce5246efdf80
parentd760b082670cde54c7669df86ffe8e1d9604119d
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