<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/samples/bpf/lwt_len_hist.sh, branch v4.10</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>bpf: Add tests and samples for LWT-BPF</title>
<updated>2016-12-02T15:52:00+00:00</updated>
<author>
<name>Thomas Graf</name>
<email>tgraf@suug.ch</email>
</author>
<published>2016-11-30T16:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f74599f7c5309b21151233b98139e9b723fd1110'/>
<id>f74599f7c5309b21151233b98139e9b723fd1110</id>
<content type='text'>
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 -&gt; 1        : 0        |                                      |
       2 -&gt; 3        : 0        |                                      |
       4 -&gt; 7        : 0        |                                      |
       8 -&gt; 15       : 0        |                                      |
      16 -&gt; 31       : 0        |                                      |
      32 -&gt; 63       : 22       |                                      |
      64 -&gt; 127      : 98       |                                      |
     128 -&gt; 255      : 213      |                                      |
     256 -&gt; 511      : 1444251  |********                              |
     512 -&gt; 1023     : 660610   |***                                   |
    1024 -&gt; 2047     : 535241   |**                                    |
    2048 -&gt; 4095     : 19       |                                      |
    4096 -&gt; 8191     : 180      |                                      |
    8192 -&gt; 16383    : 5578023  |************************************* |
   16384 -&gt; 32767    : 632099   |***                                   |
   32768 -&gt; 65535    : 6575     |                                      |

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Acked-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 -&gt; 1        : 0        |                                      |
       2 -&gt; 3        : 0        |                                      |
       4 -&gt; 7        : 0        |                                      |
       8 -&gt; 15       : 0        |                                      |
      16 -&gt; 31       : 0        |                                      |
      32 -&gt; 63       : 22       |                                      |
      64 -&gt; 127      : 98       |                                      |
     128 -&gt; 255      : 213      |                                      |
     256 -&gt; 511      : 1444251  |********                              |
     512 -&gt; 1023     : 660610   |***                                   |
    1024 -&gt; 2047     : 535241   |**                                    |
    2048 -&gt; 4095     : 19       |                                      |
    4096 -&gt; 8191     : 180      |                                      |
    8192 -&gt; 16383    : 5578023  |************************************* |
   16384 -&gt; 32767    : 632099   |***                                   |
   32768 -&gt; 65535    : 6575     |                                      |

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Acked-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
