Main-line Linux kernel tree http://www.kernel.org
Go to file
Maciej Fijalkowski bbaf6029c4 samples/bpf: Convert XDP samples to libbpf usage
Some of XDP samples that are attaching the bpf program to the interface
via libbpf's bpf_set_link_xdp_fd are still using the bpf_load.c for
loading and manipulating the ebpf program and maps. Convert them to do
this through libbpf usage and remove bpf_load from the picture.

While at it remove what looks like debug leftover in
xdp_redirect_map_user.c

In xdp_redirect_cpu, change the way that the program to be loaded onto
interface is chosen - user now needs to pass the program's section name
instead of the relative number. In case of typo print out the section
names to choose from.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-02-01 23:37:51 +01:00
arch bpf: powerpc64: add JIT support for bpf line info 2019-02-01 21:03:34 +01:00
block
certs
crypto
Documentation
drivers net: hns3: keep flow director state unchanged when reset 2019-01-30 14:50:04 -08:00
firmware
fs
include bpf: introduce BPF_F_LOCK flag 2019-02-01 20:55:39 +01:00
init
ipc
kernel bpf: introduce BPF_F_LOCK flag 2019-02-01 20:55:39 +01:00
lib
LICENSES
mm
net bpf: introduce bpf_spin_lock 2019-02-01 20:55:38 +01:00
samples samples/bpf: Convert XDP samples to libbpf usage 2019-02-01 23:37:51 +01:00
scripts
security
sound
tools libbpf: Add a helper for retrieving a map fd for a given name 2019-02-01 23:37:50 +01:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.