Re: [RFC net-next 0/2] netdevgenl: Add an xsk attribute to queues
From: Joe Damato
Date: Wed Jan 29 2025 - 12:34:29 EST
On Wed, Jan 29, 2025 at 05:24:23PM +0000, Joe Damato wrote:
> Greetings:
>
> This is an attempt to followup on something Jakub asked me about [1],
> adding an xsk attribute to queues and more clearly documenting which
> queues are linked to NAPIs...
>
> But:
>
> 1. I couldn't pick a good "thing" to expose as "xsk", so I chose 0 or 1.
> Happy to take suggestions on what might be better to expose for the
> xsk queue attribute.
>
> 2. I create a silly C helper program to create an XDP socket in order to
> add a new test to queues.py. I'm not particularly good at python
> programming, so there's probably a better way to do this. Notably,
> python does not seem to have a socket.AF_XDP, so I needed the C
> helper to make a socket and bind it to a queue to perform the test.
>
> Tested this on my mlx5 machine and the test seems to pass.
I should have been slightly more specific, I ran queues.py two ways:
1. By setting NETIF= to my mlx5 NIC
2. By just running queues.py (without NETIF) set (which I presume
uses netdevsim)
The test passes in both cases.