[PATCH net v4 2/2] bpf: selftests: send packet to devmap redirect XDP

2024-09-11 Thread Florian Kauer
this without the bugfix in this series will likely crash your system. Signed-off-by: Florian Kauer --- .../selftests/bpf/prog_tests/xdp_devmap_attach.c | 114 +++-- 1 file changed, 108 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests

[PATCH net v4 1/2] bpf: devmap: provide rxq after redirect

2024-09-11 Thread Florian Kauer
thread+0x10/0x10 <4>[ 574.475623] ret_from_fork_asm+0x1a/0x30 <4>[ 574.475635] <4>[ 574.475637] Modules linked in: veth br_netfilter bridge stp llc iwlmvm x86_pkg_temp_thermal iwlwifi efivarfs nvme nvme_core <4>[ 574.475662] CR2: <4>[ 574.475668] ---[ en

[PATCH net v4 0/2] bpf: devmap: provide rxq after redirect

2024-09-11 Thread Florian Kauer
rxq contains a pointer to the device from where the redirect happened. Currently, the BPF program that was executed after a redirect via BPF_MAP_TYPE_DEVMAP* does not have it set. Add bugfix and related selftest. Signed-off-by: Florian Kauer --- Changes in v4: - return -> goto out_close, tha

[PATCH net v3 2/2] bpf: selftests: send packet to devmap redirect XDP

2024-09-09 Thread Florian Kauer
this without the bugfix in this series will likely crash your system. Signed-off-by: Florian Kauer --- .../selftests/bpf/prog_tests/xdp_devmap_attach.c | 114 +++-- 1 file changed, 108 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests

[PATCH net v3 1/2] bpf: devmap: provide rxq after redirect

2024-09-09 Thread Florian Kauer
thread+0x10/0x10 <4>[ 574.475623] ret_from_fork_asm+0x1a/0x30 <4>[ 574.475635] <4>[ 574.475637] Modules linked in: veth br_netfilter bridge stp llc iwlmvm x86_pkg_temp_thermal iwlwifi efivarfs nvme nvme_core <4>[ 574.475662] CR2: <4>[ 574.475668] ---[ en

[PATCH net v3 0/2] bpf: devmap: provide rxq after redirect

2024-09-09 Thread Florian Kauer
rxq contains a pointer to the device from where the redirect happened. Currently, the BPF program that was executed after a redirect via BPF_MAP_TYPE_DEVMAP* does not have it set. Add bugfix and related selftest. Signed-off-by: Florian Kauer --- Changes in v3: - initialize skel to NULL, thanks

[PATCH net v2 1/2] bpf: devmap: provide rxq after redirect

2024-09-06 Thread Florian Kauer
thread+0x10/0x10 <4>[ 574.475623] ret_from_fork_asm+0x1a/0x30 <4>[ 574.475635] <4>[ 574.475637] Modules linked in: veth br_netfilter bridge stp llc iwlmvm x86_pkg_temp_thermal iwlwifi efivarfs nvme nvme_core <4>[ 574.475662] CR2: <4>[ 574.475668] ---[ en

[PATCH net v2 2/2] bpf: selftests: send packet to devmap redirect XDP

2024-09-06 Thread Florian Kauer
this without the bugfix in this series will likely crash your system. Signed-off-by: Florian Kauer --- .../selftests/bpf/prog_tests/xdp_devmap_attach.c | 114 +++-- 1 file changed, 108 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests

[PATCH net v2 0/2] bpf: devmap: provide rxq after redirect

2024-09-06 Thread Florian Kauer
rxq contains a pointer to the device from where the redirect happened. Currently, the BPF program that was executed after a redirect via BPF_MAP_TYPE_DEVMAP* does not have it set. Add bugfix and related selftest. Signed-off-by: Florian Kauer --- Changes in v2: - changed fixes tag - added