Andy Gospodarek
24251c2647
samples/bpf: add option for native and skb mode for redirect apps
...
When testing with a driver that has both native and generic redirect support:
$ sudo ./samples/bpf/xdp_redirect -N 5 6
input: 5 output: 6
ifindex 6: 4961879 pkt/s
ifindex 6: 6391319 pkt/s
ifindex 6: 6419468 pkt/s
$ sudo ./samples/bpf/xdp_redirect -S 5 6
input: 5 output: 6
ifindex 6: 1845435 pkt/s
ifindex 6: 3882850 pkt/s
ifindex 6: 3893974 pkt/s
$ sudo ./samples/bpf/xdp_redirect_map -N 5 6
input: 5 output: 6
map[0] (vports) = 4, map[1] (map) = 5, map[2] (count) = 0
ifindex 6: 2207374 pkt/s
ifindex 6: 6212869 pkt/s
ifindex 6: 6286515 pkt/s
$ sudo ./samples/bpf/xdp_redirect_map -S 5 6
input: 5 output: 6
map[0] (vports) = 4, map[1] (map) = 5, map[2] (count) = 0
ifindex 6: 5052528 pkt/s
ifindex 6: 5736631 pkt/s
ifindex 6: 5739962 pkt/s
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-17 13:46:27 -07:00
..
2016-09-23 11:52:32 -06:00
2016-10-10 07:12:02 -06:00
2017-07-17 13:46:27 -07:00
2015-10-13 22:17:57 -07:00
2016-12-11 12:12:56 +01: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
2017-03-08 09:38:43 +01:00
2017-04-26 11:38:56 +02:00
2016-09-20 12:38:48 -06:00
2017-06-16 12:32:34 -04:00
2016-09-08 22:15:25 -07:00
2017-01-09 17:22:03 +11:00
2017-04-03 01:06:00 -04:00
2016-09-23 11:51:58 -06:00
2017-03-02 08:42:24 +01: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
2017-01-11 12:12:37 -07:00
2016-09-23 11:52:14 -06:00
2017-03-02 20:51:15 -05:00
2017-03-02 20:51:15 -05:00