Skip to content

Commit 2bae79d

Browse files
qmonnetborkmann
authored andcommitted
bpf: fix documentation for eBPF helpers
Minor formatting edits for eBPF helpers documentation, including blank lines removal, fix of item list for return values in bpf_fib_lookup(), and missing prefix on bpf_skb_load_bytes_relative(). Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 671dffa commit 2bae79d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎include/uapi/linux/bpf.h‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ union bpf_attr {
18261826
* A non-negative value equal to or less than *size* on success,
18271827
* or a negative error in case of failure.
18281828
*
1829-
* int skb_load_bytes_relative(const struct sk_buff *skb, u32 offset, void *to, u32 len, u32 start_header)
1829+
* int bpf_skb_load_bytes_relative(const struct sk_buff *skb, u32 offset, void *to, u32 len, u32 start_header)
18301830
* Description
18311831
* This helper is similar to **bpf_skb_load_bytes**\ () in that
18321832
* it provides an easy way to load *len* bytes from *offset*
@@ -1877,7 +1877,7 @@ union bpf_attr {
18771877
* * < 0 if any input argument is invalid
18781878
* * 0 on success (packet is forwarded, nexthop neighbor exists)
18791879
* * > 0 one of **BPF_FIB_LKUP_RET_** codes explaining why the
1880-
* * packet is not forwarded or needs assist from full stack
1880+
* packet is not forwarded or needs assist from full stack
18811881
*
18821882
* int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags)
18831883
* Description
@@ -2033,7 +2033,6 @@ union bpf_attr {
20332033
* This helper is only available is the kernel was compiled with
20342034
* the **CONFIG_BPF_LIRC_MODE2** configuration option set to
20352035
* "**y**".
2036-
*
20372036
* Return
20382037
* 0
20392038
*
@@ -2053,7 +2052,6 @@ union bpf_attr {
20532052
* This helper is only available is the kernel was compiled with
20542053
* the **CONFIG_BPF_LIRC_MODE2** configuration option set to
20552054
* "**y**".
2056-
*
20572055
* Return
20582056
* 0
20592057
*

0 commit comments

Comments
 (0)