* [PATCH bpf-next] bpf/cpumap.c: Remove unnecessary TODO comment
@ 2025-10-19 16:58 Mehdi Ben Hadj Khelifa
2025-10-20 15:41 ` Alexander Lobakin
0 siblings, 1 reply; 3+ messages in thread
From: Mehdi Ben Hadj Khelifa @ 2025-10-19 16:58 UTC (permalink / raw)
To: ast, daniel, davem, kuba, hawk, john.fastabend, sdf, andrii,
martin.lau, eddyz87, song, yonghong.song, kpsingh, haoluo, jolsa
Cc: netdev, bpf, linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees, Mehdi Ben Hadj Khelifa
After discussion with bpf maintainers[1], queue_index could
be propagated to the remote XDP program by the xdp_md struct[2]
which makes this todo a misguide for future effort.
[1]:https://lore.kernel.org/all/87y0q23j2w.fsf@cloudflare.com/
[2]:https://docs.ebpf.io/linux/helper-function/bpf_xdp_adjust_meta/
Signed-off-by: Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
---
kernel/bpf/cpumap.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/bpf/cpumap.c b/kernel/bpf/cpumap.c
index 703e5df1f4ef..3c05e96b7d2c 100644
--- a/kernel/bpf/cpumap.c
+++ b/kernel/bpf/cpumap.c
@@ -195,7 +195,6 @@ static int cpu_map_bpf_prog_run_xdp(struct bpf_cpu_map_entry *rcpu,
rxq.dev = xdpf->dev_rx;
rxq.mem.type = xdpf->mem_type;
- /* TODO: report queue_index to xdp_rxq_info */
xdp_convert_frame_to_buff(xdpf, &xdp);
--
2.51.1.dirty
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] bpf/cpumap.c: Remove unnecessary TODO comment
2025-10-19 16:58 [PATCH bpf-next] bpf/cpumap.c: Remove unnecessary TODO comment Mehdi Ben Hadj Khelifa
@ 2025-10-20 15:41 ` Alexander Lobakin
2025-10-20 16:45 ` Mehdi Ben Hadj Khelifa
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Lobakin @ 2025-10-20 15:41 UTC (permalink / raw)
To: Mehdi Ben Hadj Khelifa
Cc: ast, daniel, davem, kuba, hawk, john.fastabend, sdf, andrii,
martin.lau, eddyz87, song, yonghong.song, kpsingh, haoluo, jolsa,
netdev, bpf, linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees
From: Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
Date: Sun, 19 Oct 2025 17:58:55 +0100
> After discussion with bpf maintainers[1], queue_index could
> be propagated to the remote XDP program by the xdp_md struct[2]
But it's not done automatically, so not aware users may get confused.
Instead of just removing the TODO, I believe you should leave a comment
here that the RxQ index gets lots after the frame is redirected, so if
someone really wants it, he/she should use <what the second link says>.
> which makes this todo a misguide for future effort.
>
> [1]:https://lore.kernel.org/all/87y0q23j2w.fsf@cloudflare.com/
> [2]:https://docs.ebpf.io/linux/helper-function/bpf_xdp_adjust_meta/
>
> Signed-off-by: Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
Thanks,
Olek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] bpf/cpumap.c: Remove unnecessary TODO comment
2025-10-20 15:41 ` Alexander Lobakin
@ 2025-10-20 16:45 ` Mehdi Ben Hadj Khelifa
0 siblings, 0 replies; 3+ messages in thread
From: Mehdi Ben Hadj Khelifa @ 2025-10-20 16:45 UTC (permalink / raw)
To: Alexander Lobakin
Cc: ast, daniel, davem, kuba, hawk, john.fastabend, sdf, andrii,
martin.lau, eddyz87, song, yonghong.song, kpsingh, haoluo, jolsa,
netdev, bpf, linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees
On 10/20/25 4:41 PM, Alexander Lobakin wrote:
> From: Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
> Date: Sun, 19 Oct 2025 17:58:55 +0100
>
>> After discussion with bpf maintainers[1], queue_index could
>> be propagated to the remote XDP program by the xdp_md struct[2]
>
> But it's not done automatically, so not aware users may get confused.
>
> Instead of just removing the TODO, I believe you should leave a comment
> here that the RxQ index gets lots after the frame is redirected, so if
> someone really wants it, he/she should use <what the second link says>.
>
Logical,I will send a v2 soon.
Thanks for the review.
Best Regards,
Mehdi Ben Hadj Khelifa>> which makes this todo a misguide for future effort.
>>
>> [1]:https://lore.kernel.org/all/87y0q23j2w.fsf@cloudflare.com/
>> [2]:https://docs.ebpf.io/linux/helper-function/bpf_xdp_adjust_meta/
>>
>> Signed-off-by: Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
> Thanks,
> Olek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-10-20 15:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-19 16:58 [PATCH bpf-next] bpf/cpumap.c: Remove unnecessary TODO comment Mehdi Ben Hadj Khelifa
2025-10-20 15:41 ` Alexander Lobakin
2025-10-20 16:45 ` Mehdi Ben Hadj Khelifa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox