From: brakmo Date: Fri, 1 Mar 2019 20:38:49 +0000 (-0800) Subject: bpf: User program for testing HBM X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a1270fe95b74eb3195b107c494ed1f11b932a278;p=openwrt%2Fstaging%2Fblogic.git bpf: User program for testing HBM The program nrm creates a cgroup and attaches a BPF program to the cgroup for testing HBM (Host Bandwidth Manager) for egress traffic. One still needs to create network traffic. This can be done through netesto, netperf or iperf3. A follow-up patch contains a script to create traffic. USAGE: hbm [-d] [-l] [-n ] [-r ] [-s] [-t ] [-w] [-h] [prog] Where: -d Print BPF trace debug buffer -l Also limit flows doing loopback -n <#> To create cgroup "/hbm#" and attach prog. Default is /nrm1 This is convenient when testing HBM in more than 1 cgroup -r Rate limit in Mbps -s Get HBM stats (marked, dropped, etc.) -t