History

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().

Quentin Monnet committed 8 years ago

Commit 2bae79d1 parent 671dffa1 file · +2 −4Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/bpf.h+2−4
@@ -1826,7 +1826,7 @@ union bpf_attr { · 1825 unmodified lines
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 { · 44 unmodified lines
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 { · 149 unmodified lines
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 { · 13 unmodified lines
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 *