linux-stable/samples
Gerhard Engleder 5c0d14a6fb samples/bpf: Fix MAC address swapping in xdp2_kern
[ Upstream commit 7a698edf95 ]

xdp2_kern rewrites and forwards packets out on the same interface.
Forwarding still works but rewrite got broken when xdp multibuffer
support has been added.

With xdp multibuffer a local copy of the packet has been introduced. The
MAC address is now swapped in the local copy, but the local copy in not
written back.

Fix MAC address swapping be adding write back of modified packet.

Fixes: 7722517422 ("samples/bpf: fixup some tools to be able to support xdp multibuffer")
Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Link: https://lore.kernel.org/r/20221015213050.65222-1-gerhard@engleder-embedded.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:25:50 +01:00
..
acrn
auxdisplay
binderfs
bpf samples/bpf: Fix MAC address swapping in xdp2_kern 2022-12-31 13:25:50 +01:00
configfs
connector
coresight
fanotify
fprobe Fixes and minor clean ups for tracing: 2022-07-12 16:17:40 -07:00
ftrace
hidraw
hw_breakpoint
kdb
kfifo
kmemleak
kobject
kprobes samples: Use KSYM_NAME_LEN for kprobes 2022-07-12 16:36:45 -04:00
landlock
livepatch
mei
nitro_enclaves
pidfd
pktgen
qmi
rpmsg
seccomp
timers
trace_events tracing: Add example and documentation for new __vstring() macro 2022-07-24 19:11:17 -04:00
trace_printk
uhid
user_events
v4l treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_168.RULE (part 2) 2022-06-10 14:51:36 +02:00
vfio-mdev
vfs
watch_queue
watchdog
Kconfig
Makefile