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
1826 * A non-negative value equal to or less than *size* on success,1826 * A non-negative value equal to or less than *size* on success,
1827 * or a negative error in case of failure.1827 * or a negative error in case of failure.
1828 *1828 *
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)
1830 * Description1830 * Description
1831 * This helper is similar to **bpf_skb_load_bytes**\ () in that1831 * This helper is similar to **bpf_skb_load_bytes**\ () in that
1832 * it provides an easy way to load *len* bytes from *offset*1832 * it provides an easy way to load *len* bytes from *offset*
@@ -1877,7 +1877,7 @@ union bpf_attr { · 44 unmodified lines
1877 * * < 0 if any input argument is invalid1877 * * < 0 if any input argument is invalid
1878 * * 0 on success (packet is forwarded, nexthop neighbor exists)1878 * * 0 on success (packet is forwarded, nexthop neighbor exists)
1879 * * > 0 one of **BPF_FIB_LKUP_RET_** codes explaining why the1879 * * > 0 one of **BPF_FIB_LKUP_RET_** codes explaining why the
1880 * * packet is not forwarded or needs assist from full stack1880 * packet is not forwarded or needs assist from full stack
1881 *1881 *
1882 * int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags)1882 * int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags)
1883 * Description1883 * Description
@@ -2033,7 +2033,6 @@ union bpf_attr { · 149 unmodified lines
2033 * This helper is only available is the kernel was compiled with2033 * This helper is only available is the kernel was compiled with
2034 * the **CONFIG_BPF_LIRC_MODE2** configuration option set to2034 * the **CONFIG_BPF_LIRC_MODE2** configuration option set to
2035 * "**y**".2035 * "**y**".
2036 *
2037 * Return2036 * Return
2038 * 02037 * 0
2039 *2038 *
@@ -2053,7 +2052,6 @@ union bpf_attr { · 13 unmodified lines
2053 * This helper is only available is the kernel was compiled with2052 * This helper is only available is the kernel was compiled with
2054 * the **CONFIG_BPF_LIRC_MODE2** configuration option set to2053 * the **CONFIG_BPF_LIRC_MODE2** configuration option set to
2055 * "**y**".2054 * "**y**".
2056 *
2057 * Return2055 * Return
2058 * 02056 * 0
2059 *2057 *