Re: [PATCH RFC 0/4] Add XDP RX queue index metadata via kfuncs

Mehdi Ben Hadj Khelifa
2025-09-25T09:55:07Z

On 9/25/25 10:43 AM, Jakub Sitnicki wrote:
> On Tue, Sep 23, 2025 at 10:00 PM +01, Mehdi Ben Hadj Khelifa wrote:
>> This patch series is intended to make a base for setting
>> queue_index in the xdp_rxq_info struct in bpf/cpumap.c to
>> the right index. Although that part I still didn't figure
>> out yet,I m searching for my guidance to do that as well
>> as for the correctness of the patches in this series.
>
> What is the use case/movtivation behind this work?

The goal of the work is to have xdp programs have the correct packet RX
queue index after being redirected through cpumap because currently the
queue_index gets unset or more accurately set to 0 as a default in
xdp_rxq_info. This is my current understanding.I still have to know how
I can propogate that HW hint from the NICs to the function where I need it.

Regards,
Mehdi