[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171203010001.1230-1-daniel@iogearbox.net>
Date: Sun, 3 Dec 2017 02:00:01 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: davem@...emloft.net
Cc: daniel@...earbox.net, ast@...nel.org, netdev@...r.kernel.org
Subject: pull-request: bpf-next 2017-12-03
Hi David,
The following pull-request contains BPF updates for your *net-next* tree.
The main changes are:
1) Addition of a software model for BPF offloads in order to ease
testing code changes in that area and make semantics more clear.
This is implemented in a new driver called netdevsim, which can
later also be extended for other offloads. SR-IOV support is added
as well to netdevsim. BPF kernel selftests for offloading are
added so we can track basic functionality as well as exercising
all corner cases around BPF offloading, from Jakub.
2) Today drivers have to drop the reference on BPF progs they hold
due to XDP on device teardown themselves. Change this in order
to make XDP handling inside the drivers less error prone, and
move disabling XDP to the core instead, also from Jakub.
3) Misc set of BPF verifier improvements and cleanups as preparatory
work for upcoming BPF-to-BPF calls. Among others, this set also
improves liveness marking such that pruning can be slightly more
effective. Register and stack liveness information is now included
in the verifier log as well, from Alexei.
4) nfp JIT improvements in order to identify load/store sequences in
the BPF prog e.g. coming from memcpy lowering and optimizing them
through the NPU's command push pull (CPP) instruction, from Jiong.
5) Cleanups to test_cgrp2_attach2.c BPF sample code in oder to remove
bpf_prog_attach() magic values and replacing them with actual proper
attach flag instead, from David.
Please consider pulling these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
Thanks a lot!
----------------------------------------------------------------
The following changes since commit 9f66816a6a4dd740bfa29cc8a8e19b90fd7df4e7:
net: dsa: bcm_sf2: Utilize b53_get_tag_protocol() (2017-11-30 13:00:04 -0500)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
for you to fetch changes up to 6720f1084c066a5ba051a250e9d5d8c2ad4f554c:
Merge branch 'bpf-xdp-stack-uninit-and-offload-tests' (2017-12-03 00:27:59 +0100)
----------------------------------------------------------------
Alexei Starovoitov (7):
bpf: fix stack state printing in verifier log
bpf: print liveness info to verifier log
bpf: don't mark FP reg as uninit
bpf: improve verifier liveness marks
bpf: improve JEQ/JNE path walking
bpf: cleanup register_is_null()
selftests/bpf: adjust test_align expected output
Daniel Borkmann (3):
Merge branch 'bpf-verifier-misc-improvements'
Merge branch 'bpf-nfp-jmp-memcpy-improvements'
Merge branch 'bpf-xdp-stack-uninit-and-offload-tests'
David Ahern (1):
samples/bpf: Convert magic numbers to names in multi-prog cgroup test case
Jakub Kicinski (10):
nfp: fix old kdoc issues
nfp: bpf: encode indirect commands
net: xdp: avoid output parameters when querying XDP prog
net: xdp: report flags program was installed with on query
net: xdp: make the stack take care of the tear down
netdevsim: add software driver for testing offloads
netdevsim: add bpf offload support
selftests/bpf: add offload test based on netdevsim
netdevsim: add SR-IOV functionality
net: dummy: remove fake SR-IOV functionality
Jiong Wang (11):
nfp: bpf: support backward jump
nfp: bpf: record jump destination to simplify jump fixup
nfp: bpf: flag jump destination to guide insn combine optimizations
nfp: bpf: don't do ld/mask combination if mask is jump destination
nfp: bpf: don't do ld/shifts combination if shifts are jump destination
nfp: bpf: relax source operands check
nfp: bpf: correct the encoding for No-Dest immed
nfp: bpf: factor out is_mbpf_load & is_mbpf_store
nfp: bpf: implement memory bulk copy for length within 32-bytes
nfp: bpf: implement memory bulk copy for length bigger than 32-bytes
nfp: bpf: detect load/store sequences lowered from memory copy
MAINTAINERS | 5 +
drivers/net/Kconfig | 11 +
drivers/net/Makefile | 1 +
drivers/net/dummy.c | 215 +------
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 -
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 3 -
drivers/net/ethernet/netronome/nfp/bpf/jit.c | 487 +++++++++++++--
drivers/net/ethernet/netronome/nfp/bpf/main.c | 7 -
drivers/net/ethernet/netronome/nfp/bpf/main.h | 35 +-
drivers/net/ethernet/netronome/nfp/bpf/offload.c | 23 +-
drivers/net/ethernet/netronome/nfp/bpf/verifier.c | 8 +-
drivers/net/ethernet/netronome/nfp/nfp_asm.c | 7 +-
drivers/net/ethernet/netronome/nfp/nfp_asm.h | 7 +-
drivers/net/ethernet/netronome/nfp/nfp_net.h | 2 +
.../net/ethernet/netronome/nfp/nfp_net_common.c | 4 +-
.../ethernet/netronome/nfp/nfpcore/nfp_cppcore.c | 9 +-
drivers/net/ethernet/qlogic/qede/qede_main.c | 4 -
drivers/net/netdevsim/Makefile | 7 +
drivers/net/netdevsim/bpf.c | 373 +++++++++++
drivers/net/netdevsim/netdev.c | 502 +++++++++++++++
drivers/net/netdevsim/netdevsim.h | 78 +++
drivers/net/tun.c | 4 -
include/linux/netdevice.h | 5 +-
kernel/bpf/verifier.c | 62 +-
net/core/dev.c | 53 +-
net/core/rtnetlink.c | 6 +-
samples/bpf/test_cgrp2_attach2.c | 36 +-
tools/testing/selftests/bpf/Makefile | 5 +-
tools/testing/selftests/bpf/sample_ret0.c | 7 +
tools/testing/selftests/bpf/test_align.c | 156 ++---
tools/testing/selftests/bpf/test_offload.py | 681 +++++++++++++++++++++
31 files changed, 2362 insertions(+), 443 deletions(-)
create mode 100644 drivers/net/netdevsim/Makefile
create mode 100644 drivers/net/netdevsim/bpf.c
create mode 100644 drivers/net/netdevsim/netdev.c
create mode 100644 drivers/net/netdevsim/netdevsim.h
create mode 100644 tools/testing/selftests/bpf/sample_ret0.c
create mode 100755 tools/testing/selftests/bpf/test_offload.py
Powered by blists - more mailing lists