]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-nfp-map-offload'
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 14 Jan 2018 22:36:31 +0000 (23:36 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 14 Jan 2018 22:36:32 +0000 (23:36 +0100)
commit18dc4bd036fa23cb3c1d382a93eaef9d2c426d55
tree83288f9aaac80739a3e10556c62296584b9a2e20
parentc7c5841b30754372330003214dac9e45a5baedf0
parent995bbd3651b6d13c0082b645e96d4d58745e6a32
Merge branch 'bpf-nfp-map-offload'

Jakub Kicinski says:

====================
This set adds support for creating maps on networking devices.  BPF is
programs+maps, the pure program offload has been around for quite some
time, this patchset adds the map part of the equation.

Maps are allocated on the target device from the start.  There is no
host copy when map is created on the device.  Device maps are represented
by struct bpf_offloaded_map, regardless of type.  Host programs can't
access such maps, access is only possible from a program also loaded
to the same device and/or via the BPF syscall.

Offloaded programs are currently only allowed to perform lookups,
control plane is responsible for populating the maps.

For brevity only infrastructure and basic NFP patches are included.
Target device reporting, netdevsim and tests will follow up as well as
some further optimizations to the NFP code.

v2:
 - leave out the array maps, we will add them trivially later to avoid
   merge conflicts with ongoing spectere&meltdown mitigations.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>