Re: [PATCH net-next RFC] selftests: net: add netpoll basic functionality test

From: Jakub Kicinski
Date: Sat Jun 21 2025 - 09:51:34 EST


On Fri, 20 Jun 2025 01:39:43 -0700 Breno Leitao wrote:
> > FWIW you can steal bpftrace integration from this series:
> > https://lore.kernel.org/all/20250421222827.283737-22-kuba@xxxxxxxxxx/
>
> Yes, that would be great. I think we can iterate until we hit the poll
> path, otherwise we skip the test at timeout. Something as:
>
> while (true):
> send msg
> if netpoll_poll_dev() was invoked:
> ksft_exit
>
> if timeout:
> raise KsftSkipEx
>
> As soon as your code lands, I will adapt the test to do so. Meanwhile,
> I will send the v1 for the netpoll, and later we can iterate.
>
> Thanks for working on this bfptrace helper. This will be useful on other
> usecases as well.

Right, you're the second person I pointed that patch out to. Would be
great if someone could steal that patch and make it a part of their
series so that it gets merged :S But it's alright if you prefer to stick
to non-bpftrace testing for now..