nfp: bpf: refactor offload logic
Jakub Kicinski authored

We currently create a fake cls_bpf offload object when we want
to offload XDP.  Simplify and clarify the code by moving the
TC/XDP specific logic out of common offload code.  This is easy
now that we don't support legacy TC actions.  We only need the
bpf program and state of the skip_sw flag.

Temporarily set @code to NULL in nfp_net_bpf_offload(), compilers
seem to have trouble recognizing it's always initialized.  Next
patches will eliminate that variable.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
9ce7a956
Name Last commit Last update
Documentation Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
arch Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
block License cleanup: add SPDX GPL-2.0 license identifier to files with no license
certs License cleanup: add SPDX GPL-2.0 license identifier to files with no license
crypto License cleanup: add SPDX GPL-2.0 license identifier to files with no license
drivers nfp: bpf: refactor offload logic
firmware License cleanup: add SPDX GPL-2.0 license identifier to files with no license
fs Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
include xdp: allow attaching programs loaded for specific device
init Merge tag 'spdx_identifiers-4.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
ipc License cleanup: add SPDX GPL-2.0 license identifier to files with no license
kernel cls_bpf: allow attaching programs loaded for specific device
lib Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
mm mm, swap: fix race between swap count continuation operations
net cls_bpf: allow attaching programs loaded for specific device
samples Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
scripts Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
security Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
sound Merge tag 'spdx_identifiers-4.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
tools bpftool: print program device bound info
usr initramfs: fix initramfs rebuilds w/ compression after disabling
virt License cleanup: add SPDX GPL-2.0 license identifier to files with no license
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

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.