Thomas Graf
f74599f7c5
bpf: Add tests and samples for LWT-BPF
...
Adds a series of tests to verify the functionality of attaching
BPF programs at LWT hooks.
Also adds a sample which collects a histogram of packet sizes which
pass through an LWT hook.
$ ./lwt_len_hist.sh
Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.253.2 () port 0 AF_INET : demo
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 39857.69
1 -> 1 : 0 | |
2 -> 3 : 0 | |
4 -> 7 : 0 | |
8 -> 15 : 0 | |
16 -> 31 : 0 | |
32 -> 63 : 22 | |
64 -> 127 : 98 | |
128 -> 255 : 213 | |
256 -> 511 : 1444251 |******** |
512 -> 1023 : 660610 |*** |
1024 -> 2047 : 535241 |** |
2048 -> 4095 : 19 | |
4096 -> 8191 : 180 | |
8192 -> 16383 : 5578023 |************************************* |
16384 -> 32767 : 632099 |*** |
32768 -> 65535 : 6575 | |
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-02 10:52:00 -05:00
..
2016-09-23 11:52:32 -06:00
2016-10-10 07:12:02 -06:00
2016-12-02 10:52:00 -05:00
2015-10-13 22:17:57 -07:00
2016-04-28 07:47:35 -06:00
2015-03-15 10:11:21 -04:00
2011-07-01 11:06:38 +02:00
2010-10-29 13:14:39 -05:00
2013-11-15 09:32:23 +09:00
2015-03-25 13:41:42 +01:00
2016-08-04 08:50:07 -04:00
2016-04-01 15:00:11 +02:00
2016-09-23 11:51:43 -06:00
2016-09-20 12:38:48 -06:00
2016-07-20 22:16:02 -07:00
2016-09-08 22:15:25 -07:00
2016-07-07 10:58:03 -07:00
2016-09-23 11:51:58 -06:00
2015-11-02 14:09:15 -05:00
2016-06-20 09:54:21 -04:00
2013-09-04 11:35:14 +02:00
2016-07-08 14:45:07 -03:00
2016-09-23 11:52:14 -06:00
2016-10-10 07:12:02 -06:00
2016-10-10 07:12:02 -06:00