diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-10-19 10:13:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-21 10:36:07 -0700 |
commit | 0db51da7a8e99f0803ec3a8e25c1a66234a219cb (patch) | |
tree | 20b264225d8b4a4e513c4eff1250b29698c31af9 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 8dc9a0888f4c8e27b25e48ff1b4bc2b3a845cc2d (diff) |
net: mvneta: add basic XDP support
Add basic XDP support to mvneta driver for devices that rely on software
buffer management. Currently supported verdicts are:
- XDP_DROP
- XDP_PASS
- XDP_REDIRECT
- XDP_ABORTED
- iptables drop:
$iptables -t raw -I PREROUTING -p udp --dport 9 -j DROP
$nstat -n && sleep 1 && nstat
IpInReceives 151169 0.0
IpExtInOctets 6953544 0.0
IpExtInNoECTPkts 151165 0.0
- XDP_DROP via xdp1
$./samples/bpf/xdp1 3
proto 0: 421419 pkt/s
proto 0: 421444 pkt/s
proto 0: 421393 pkt/s
proto 0: 421440 pkt/s
proto 0: 421184 pkt/s
Tested-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions