aboutsummaryrefslogtreecommitdiff
path: root/samples/bpf/tcp_bufs_kern.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-24samples: bpf: Do not define bpf_printk macroMichal Rostecki1-7/+0
The bpf_printk macro was moved to bpf_helpers.h which is included in all example programs. Signed-off-by: Michal Rostecki <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
2019-03-01samples: bpf: remove load_sock_ops in favour of bpftoolJakub Kicinski1-1/+1
bpftool can do all the things load_sock_ops used to do, and more. Point users to bpftool instead of maintaining this sample utility. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
2017-11-11bpf: Fix tcp_bufs_kern.c sample programLawrence Brakmo1-6/+8
The program was returning -1 in some cases which is not allowed by the verifier any longer. Fixes: 390ee7e29fc8 ("bpf: enforce return code for cgroup-bpf programs") Signed-off-by: Lawrence Brakmo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2017-07-01bpf: Sample BPF program to set buffer sizesLawrence Brakmo1-0/+86
This patch contains a BPF program to set initial receive window to 40 packets and send and receive buffers to 1.5MB. This would usually be done after doing appropriate checks that indicate the hosts are far enough away (i.e. large RTT). Signed-off-by: Lawrence Brakmo <[email protected]> Signed-off-by: David S. Miller <[email protected]>