Skip to content

bpf: Fix bugs in sock_ops samples

Lawrence Brakmo netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6bpf: Fix tcp_synrto_kern.c sample programsamples/bpf/tcp_synrto_kern.c+4 -20 replies
2/6bpf: Fix tcp_rwnd_kern.c sample programsamples/bpf/tcp_rwnd_kern.c+4 -20 replies
3/6bpf: Fix tcp_bufs_kern.c sample programsamples/bpf/tcp_bufs_kern.c+8 -60 replies
4/6bpf: Fix tcp_cong_kern.c sample programsamples/bpf/tcp_cong_kern.c+4 -20 replies
5/6bpf: Fix tcp_iw_kern.c sample programsamples/bpf/tcp_iw_kern.c+8 -60 replies
6/6bpf: Fix tcp_clamp_kern.c sample programsamples/bpf/tcp_clamp_kern.c+13 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/6] bpf: Fix bugs in sock_ops samples

The programs were returning -1 in some cases when they should only return 0 or 1. Changes in the verifier now catch this issue and the programs fail to load. This is now fixed.

[PATCH net-next v2 1/6] bpf: Fix tcp_synrto_kern.c sample program [PATCH net-next v2 2/6] bpf: Fix tcp_rwnd_kern.c sample program [PATCH net-next v2 3/6] bpf: Fix tcp_bufs_kern.c sample program [PATCH net-next v2 4/6] bpf: Fix tcp_cong_kern.c sample program [PATCH net-next v2 5/6] bpf: Fix tcp_iw_kern.c sample program [PATCH net-next v2 6/6] bpf: Fix tcp_clamp_kern.c sample program

samples/bpf/tcp_bufs_kern.c   | 14 ++++++++------
samples/bpf/tcp_clamp_kern.c  | 24 +++++++++++++-----------
samples/bpf/tcp_cong_kern.c   |  6 ++++--
samples/bpf/tcp_iw_kern.c     | 14 ++++++++------
samples/bpf/tcp_rwnd_kern.c   |  6 ++++--
samples/bpf/tcp_synrto_kern.c |  6 ++++--

files changed, 41 insertions(+), 29 deletions(-)