[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87h5so1n49.fsf@toke.dk>
Date: Wed, 14 Jan 2026 11:53:42 +0100
From: Toke Høiland-Jørgensen <toke@...nel.org>
To: saiaunghlyanhtet <saiaunghlyanhtet2003@...il.com>, bpf@...r.kernel.org
Cc: Alexei Starovoitov <ast@...nel.org>, Daniel Borkmann
<daniel@...earbox.net>, John Fastabend <john.fastabend@...il.com>,
netdev@...r.kernel.org, saiaunghlyanhtet <saiaunghlyanhtet2003@...il.com>,
Jesper Dangaard Brouer <hawk@...nel.org>, Lorenzo Bianconi
<lorenzo.bianconi@...hat.com>
Subject: Re: [bpf-next,v3] bpf: cpumap: report queue_index to xdp_rxq_info
saiaunghlyanhtet <saiaunghlyanhtet2003@...il.com> writes:
> When packets are redirected via cpumap, the original queue_index
> information from xdp_rxq_info was lost. This is because the
> xdp_frame structure did not include a queue_index field.
>
> This patch adds a queue_index field to struct xdp_frame and ensures
> it is properly preserved during the xdp_buff to xdp_frame conversion.
> Now the queue_index is reported to the xdp_rxq_info.
>
> Resolves the TODO comment in cpu_map_bpf_prog_run_xdp().
>
> Signed-off-by: saiaunghlyanhtet <saiaunghlyanhtet2003@...il.com>
This exact patch was submitted before by Lorenzo[0] and was rejected
with the argument that we shouldn't be adding more fields to xdp_frame
in an ad-hoc manner, but rather wait until we have a more general
solution.
-Toke
[0] https://lore.kernel.org/r/1a22e7e9-e6ef-028f-dffa-e954207dc24d@redhat.com
Powered by blists - more mailing lists