Skip to content

Commit

Permalink
program: remove mention of outLen from Test documentation
Browse files Browse the repository at this point in the history
The outLen parameter to (*Program).Test was removed in commit
e45ae4a ("detect kernel support for BPF_PROG_TEST_RUN and work
around unsafe API"). Remove it from the godoc comment as well.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
  • Loading branch information
tklauser authored Apr 10, 2024
1 parent bbb2c07 commit c6e8fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prog.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ type RunOptions struct {
}

// Test runs the Program in the kernel with the given input and returns the
// value returned by the eBPF program. outLen may be zero.
// value returned by the eBPF program.
//
// Note: the kernel expects at least 14 bytes input for an ethernet header for
// XDP and SKB programs.
Expand Down

0 comments on commit c6e8fb6

Please sign in to comment.