OpenCloudOS-Kernel/drivers/net/ethernet/netronome/nfp
David S. Miller 339bbff2d6 Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
Daniel Borkmann says:

====================
pull-request: bpf-next 2018-12-21

The following pull-request contains BPF updates for your *net-next* tree.

There is a merge conflict in test_verifier.c. Result looks as follows:

        [...]
        },
        {
                "calls: cross frame pruning",
                .insns = {
                [...]
                .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
                .errstr_unpriv = "function calls to other bpf functions are allowed for root only",
                .result_unpriv = REJECT,
                .errstr = "!read_ok",
                .result = REJECT,
	},
        {
                "jset: functional",
                .insns = {
        [...]
        {
                "jset: unknown const compare not taken",
                .insns = {
                        BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
                                     BPF_FUNC_get_prandom_u32),
                        BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
                        BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
                        BPF_EXIT_INSN(),
                },
                .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
                .errstr_unpriv = "!read_ok",
                .result_unpriv = REJECT,
                .errstr = "!read_ok",
                .result = REJECT,
        },
        [...]
        {
                "jset: range",
                .insns = {
                [...]
                },
                .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
                .result_unpriv = ACCEPT,
                .result = ACCEPT,
        },

The main changes are:

1) Various BTF related improvements in order to get line info
   working. Meaning, verifier will now annotate the corresponding
   BPF C code to the error log, from Martin and Yonghong.

2) Implement support for raw BPF tracepoints in modules, from Matt.

3) Add several improvements to verifier state logic, namely speeding
   up stacksafe check, optimizations for stack state equivalence
   test and safety checks for liveness analysis, from Alexei.

4) Teach verifier to make use of BPF_JSET instruction, add several
   test cases to kselftests and remove nfp specific JSET optimization
   now that verifier has awareness, from Jakub.

5) Improve BPF verifier's slot_type marking logic in order to
   allow more stack slot sharing, from Jiong.

6) Add sk_msg->size member for context access and add set of fixes
   and improvements to make sock_map with kTLS usable with openssl
   based applications, from John.

7) Several cleanups and documentation updates in bpftool as well as
   auto-mount of tracefs for "bpftool prog tracelog" command,
   from Quentin.

8) Include sub-program tags from now on in bpf_prog_info in order to
   have a reliable way for user space to get all tags of the program
   e.g. needed for kallsyms correlation, from Song.

9) Add BTF annotations for cgroup_local_storage BPF maps and
   implement bpf fs pretty print support, from Roman.

10) Fix bpftool in order to allow for cross-compilation, from Ivan.

11) Update of bpftool license to GPLv2-only + BSD-2-Clause in order
    to be compatible with libbfd and allow for Debian packaging,
    from Jakub.

12) Remove an obsolete prog->aux sanitation in dump and get rid of
    version check for prog load, from Daniel.

13) Fix a memory leak in libbpf's line info handling, from Prashant.

14) Fix cpumap's frame alignment for build_skb() so that skb_shared_info
    does not get unaligned, from Jesper.

15) Fix test_progs kselftest to work with older compilers which are less
    smart in optimizing (and thus throwing build error), from Stanislav.

16) Cleanup and simplify AF_XDP socket teardown, from Björn.

17) Fix sk lookup in BPF kselftest's test_sock_addr with regards
    to netns_id argument, from Andrey.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
2018-12-20 17:31:36 -08:00
..
abm nfp: abm: allow to opt-out of RED offload 2018-12-16 12:41:42 -08:00
bpf nfp: bpf: optimize codegen for JSET with a constant 2018-12-20 17:28:29 +01:00
flower Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-12-20 11:53:36 -08:00
nfpcore nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nic nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
Makefile nfp: abm: add cls_u32 offload for simple band classification 2018-11-19 18:53:46 -08:00
nfp_abi.h nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_app.c nfp: add offloads on representors 2018-11-30 13:30:44 -08:00
nfp_app.h nfp: register a notifier handler in a central location for the device 2018-11-07 11:45:22 -08:00
nfp_app_nic.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_asm.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_asm.h nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_devlink.c nfp: devlink port split support for 1x100G CXP NIC 2018-10-15 22:29:55 -07:00
nfp_hwmon.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_main.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_main.h nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_net.h nfp: report more info when reconfiguration fails 2018-11-30 13:30:45 -08:00
nfp_net_common.c nfp: report more info when reconfiguration fails 2018-11-30 13:30:45 -08:00
nfp_net_ctrl.c nfp: add offset to all TLV parsing errors 2018-11-30 13:30:44 -08:00
nfp_net_ctrl.h nfp: add offloads on representors 2018-11-30 13:30:44 -08:00
nfp_net_debugdump.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_net_debugfs.c nfp: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-03 17:33:38 -08:00
nfp_net_ethtool.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_net_main.c nfp: pass ctrl_bar pointer to nfp_net_alloc 2018-11-08 20:48:00 -08:00
nfp_net_repr.c nfp: add offloads on representors 2018-11-30 13:30:44 -08:00
nfp_net_repr.h nfp: add offloads on representors 2018-11-30 13:30:44 -08:00
nfp_net_sriov.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_net_sriov.h nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_netvf_main.c nfp: pass ctrl_bar pointer to nfp_net_alloc 2018-11-08 20:48:00 -08:00
nfp_port.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_port.h nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00
nfp_shared_buf.c nfp: replace long license headers with SPDX 2018-10-11 12:16:21 -07:00