Centos-kernel-stream-9/samples
Felix Maurer 726f91cc1f samples/bpf: Fix MAC address swapping in xdp2_kern
Bugzilla: https://bugzilla.redhat.com/2137876

commit 7a698edf954cb3f8b6e8dacdb77615355170420c
Author: Gerhard Engleder <gerhard@engleder-embedded.com>
Date:   Sat Oct 15 23:30:50 2022 +0200

    samples/bpf: Fix MAC address swapping in xdp2_kern
    
    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: 772251742262 ("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: Felix Maurer <fmaurer@redhat.com>
2023-01-05 15:46:53 +01:00
..
acrn
auxdisplay
binderfs
bpf samples/bpf: Fix MAC address swapping in xdp2_kern 2023-01-05 15:46:53 +01:00
configfs
connector
fprobe
ftrace ftrace/samples: Add missing prototype for my_direct_func 2023-01-05 15:46:50 +01:00
hidraw
hw_breakpoint
kdb
kfifo
kmemleak
kobject
kprobes
landlock
livepatch
mei
nitro_enclaves
pidfd
pktgen
qmi
rpmsg
seccomp
timers
trace_events
trace_printk
uhid
v4l
vfio-mdev
vfs
watch_queue
watchdog
Kconfig
Makefile