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().
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -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 | * Description | 1830 | * Description |
| 1831 | * This helper is similar to **bpf_skb_load_bytes**\ () in that | 1831 | * 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 invalid | 1877 | * * < 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 the | 1879 | * * > 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 |
| 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 | * Description | 1883 | * Description |
| @@ -2033,7 +2033,6 @@ union bpf_attr { · 149 unmodified lines | |||
| 2033 | * This helper is only available is the kernel was compiled with | 2033 | * This helper is only available is the kernel was compiled with |
| 2034 | * the **CONFIG_BPF_LIRC_MODE2** configuration option set to | 2034 | * the **CONFIG_BPF_LIRC_MODE2** configuration option set to |
| 2035 | * "**y**". | 2035 | * "**y**". |
| 2036 | * | ||
| 2037 | * Return | 2036 | * Return |
| 2038 | * 0 | 2037 | * 0 |
| 2039 | * | 2038 | * |
| @@ -2053,7 +2052,6 @@ union bpf_attr { · 13 unmodified lines | |||
| 2053 | * This helper is only available is the kernel was compiled with | 2052 | * This helper is only available is the kernel was compiled with |
| 2054 | * the **CONFIG_BPF_LIRC_MODE2** configuration option set to | 2053 | * the **CONFIG_BPF_LIRC_MODE2** configuration option set to |
| 2055 | * "**y**". | 2054 | * "**y**". |
| 2056 | * | ||
| 2057 | * Return | 2055 | * Return |
| 2058 | * 0 | 2056 | * 0 |
| 2059 | * | 2057 | * |