summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-10kbench_mod: Fix build on sparc64.HEADmasterDavid S. Miller1-14/+14
get_tick() is not a good function name, namespace wise, so use kbench_get_tick() instead. Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-09kbench_mod: use %zd instead of %Zd for sizeofVincent Bernat1-1/+1
Signed-off-by: Vincent Bernat <vincent@bernat.im> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-09kbench_mod: replace use of cpu_has_tsc by boot_cpu_has()Vincent Bernat1-1/+1
The former one is not available since Linux 4.6 and boot_cpu_has() is available since a long time. Signed-off-by: Vincent Bernat <vincent@bernat.im> Signed-off-by: David S. Miller <davem@davemloft.net>
2014-12-09udpflood: Add IPv6 supportMartin KaFai Lau1-24/+101
This patch: 1. Add IPv6 support 2. Print timing for every 65536 fib insert operations to observe the gc effect (mostly for IPv6 fib). Signed-off-by: David S. Miller <davem@davemloft.net>
2011-07-07kbench_mod: Use flowi4 and pointer returns throughout.David S. Miller1-38/+24
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-03-08kbench_mod: Add kernel module route lookup tester.David S. Miller2-2/+505
Flow keys can be specified on the kernel command line. A warmup of "warmup_count" lookups are performed, then a single cycle counted lookup is performed with the cycle count reported in the kernel logs. X86, Powerpc, and Sparc64 are currently supported. Signed-off-by: David S. Miller <davem@davemloft.net>
2011-03-08route_bench: Set NLM_F_NOREPLY in do_bench().David S. Miller1-1/+4
This avoids us seeing overhead from netlink reply generation. As a backup we keep the socket filter there in case the kernel does not support this feature. Signed-off-by: David S. Miller <davem@davemloft.net>
2011-02-20route_bench: Remove knowledge of libmnl internals, not needed.David S. Miller1-11/+2
Since mnl_socket_get_fd() exists, we can use that. Thanks to Pablo. Signed-off-by: David S. Miller <davem@davemloft.net>
2011-02-20route_bench: Filter out all responses.David S. Miller1-8/+25
Install a socket filter to reduce the pure netlink overhead. Unfortunately the libmnl library does not provide a way to set socket options that are of level other than SOL_NETLINK. So we hack it by knowing some things about libmnl internals. Signed-off-by: David S. Miller <davem@davemloft.net>
2011-02-18Initial commit.David S. Miller3-0/+465