exynos-linux-stable/arch/powerpc
Martin KaFai Lau 758149474e
bpf: xdp: Allow head adjustment in XDP prog
This patch allows XDP prog to extend/remove the packet
data at the head (like adding or removing header).  It is
done by adding a new XDP helper bpf_xdp_adjust_head().

It also renames bpf_helper_changes_skb_data() to
bpf_helper_changes_pkt_data() to better reflect
that XDP prog does not work on skb.

This patch adds one "xdp_adjust_head" bit to bpf_prog for the
XDP-capable driver to check if the XDP prog requires
bpf_xdp_adjust_head() support.  The driver can then decide
to error out during XDP_SETUP_PROG.

Change-Id: Id014784cbd7cb6afa63ab9ac667f9804c45f34e1
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-09-25 16:54:37 +03:00
..
boot powerpc/44x: Adjust indentation in ibm4xx_denali_fixup_memsize 2020-02-14 16:31:05 -05:00
configs Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux into next 2016-10-11 20:07:56 +11:00
crypto crypto: hash - annotate algorithms taking optional key 2018-02-25 11:05:43 +01:00
include This is the 4.9.212 stable release 2020-01-29 10:47:55 +01:00
kernel powerpc: Include .BTF section 2020-04-02 17:20:21 +02:00
kvm This is the 4.9.214 stable release 2020-02-17 10:05:12 +01:00
lib powerpc/lib: fix book3s/32 boot failure due to code patching 2019-05-16 19:43:47 +02:00
math-emu powerpc: Correct emulated mtfsf instruction 2014-04-07 10:33:11 +10:00
mm powerpc: Ensure that swiotlb buffer is allocated from low memory 2020-01-12 11:24:22 +01:00
net bpf: xdp: Allow head adjustment in XDP prog 2024-09-25 16:54:37 +03:00
oprofile powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
perf powerpc/perf: Fix MMCRA corruption by bhrb_filter 2019-06-11 12:22:41 +02:00
platforms This is the 4.9.215 stable release 2020-02-28 16:59:01 +01:00
scripts powerpc/ftrace: Add Kconfig & Make glue for mprofile-kernel 2016-03-07 14:53:56 +11:00
sysdev powerpc/4xx/uic: clear pending interrupt after irq type/pol change 2019-08-04 09:33:39 +02:00
xmon powerpc/xmon: fix dump_segments() 2019-12-05 15:34:39 +01:00
Kconfig of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-14 16:31:01 -05:00
Kconfig.debug powerpc/mm: Catch usage of cpu/mmu_has_feature() before jump label init 2016-08-01 11:15:06 +10:00
Makefile kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2023-04-30 22:09:39 +03:00
relocs_check.sh powerpc/64: whitelist unresolved modversions CRCs 2016-09-22 14:46:31 +02:00