Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpf: make xdp sample variable names more meaningful | Brenden Blanco | 2016-07-21 | 1 | -7/+7 |
| | | | | | | | | | | The naming choice of index is not terribly descriptive, and dropcnt is in fact incorrect for xdp2. Pick better names for these: ipproto and rxcnt. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> | ||||
* | bpf: add sample for xdp forwarding and rewrite | Brenden Blanco | 2016-07-20 | 1 | -0/+114 |
Add a sample that rewrites and forwards packets out on the same interface. Observed single core forwarding performance of ~10Mpps. Since the mlx4 driver under test recycles every single packet page, the perf output shows almost exclusively just the ring management and bpf program work. Slowdowns are likely occurring due to cache misses. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> |