History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next

Daniel Borkmann says: ==================== pull-request: bpf-next 2018-07-15 The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) Various different arm32 JIT improvements in order to optimize code emission and make the JIT code itself more robust, from Russell. 2) Support simultaneous driver and offloaded XDP in order to allow for advanced use-cases where some work is offloaded to the NIC and some to the host. Also add ability for bpftool to load programs and maps beyond just the cgroup case, from Jakub. 3) Add BPF JIT support in nfp for multiplication as well as division. For the latter in particular, it uses the reciprocal algorithm to emulate it, from Jiong. 4) Add BTF pretty print functionality to bpftool in plain and JSON output format, from Okash. 5) Add build and installation to the BPF helper man page into bpftool, from Quentin. 6) Add a TCP BPF callback for listening sockets which is triggered right after the socket transitions to TCP_LISTEN state, from Andrey. 7) Add a new cgroup tree command to bpftool which iterates over the whole cgroup tree and prints all attached programs, from Roman. 8) Improve xdp_redirect_cpu sample to support parsing of double VLAN tagged packets, from Jesper. ====================

David S. Miller committed 8 years ago

Commit 2aa4a332 parents f5c64e5 13f743267 files · +3119 −929Browse files

Showing the changes to include/uapi/linux (2 of 67 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/bpf.h +5 −4
  2. include/uapi/linux/if_link.h +4 −0
include/uapi/linux/bpf.h+5−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 *
@@ -2557,6 +2555,9 @@ enum { · 497 unmodified lines
2557 * Arg1: old_state2555 * Arg1: old_state
2558 * Arg2: new_state2556 * Arg2: new_state
2559 */2557 */
2558 BPF_SOCK_OPS_TCP_LISTEN_CB, /* Called on listen(2), right after
2559 * socket transition to LISTEN state.
2560 */
2560};2561};
2561 2562
2562/* List of TCP states. There is a build check in net/ipv4/tcp.c to detect2563/* List of TCP states. There is a build check in net/ipv4/tcp.c to detect
include/uapi/linux/if_link.h+4−0
@@ -920,6 +920,7 @@ enum { · 919 unmodified lines
920 XDP_ATTACHED_DRV,920 XDP_ATTACHED_DRV,
921 XDP_ATTACHED_SKB,921 XDP_ATTACHED_SKB,
922 XDP_ATTACHED_HW,922 XDP_ATTACHED_HW,
923 XDP_ATTACHED_MULTI,
923};924};
924 925
925enum {926enum {
@@ -928,6 +929,9 @@ enum { · 2 unmodified lines
928 IFLA_XDP_ATTACHED,929 IFLA_XDP_ATTACHED,
929 IFLA_XDP_FLAGS,930 IFLA_XDP_FLAGS,
930 IFLA_XDP_PROG_ID,931 IFLA_XDP_PROG_ID,
932 IFLA_XDP_DRV_PROG_ID,
933 IFLA_XDP_SKB_PROG_ID,
934 IFLA_XDP_HW_PROG_ID,
931 __IFLA_XDP_MAX,935 __IFLA_XDP_MAX,
932};936};
933 937