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

2025-06-23 Thread Breno Leitao
On Mon, Jun 23, 2025 at 10:29:03AM -0700, Jakub Kicinski wrote: > On Mon, 23 Jun 2025 02:16:12 -0700 Breno Leitao wrote: > > So, the selftest for netpoll is already in the mailing list[1], so, we > > have two options, now: > > > > 1) Steal your patch and make [1] depend on it. > > 2) Merge the

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

2025-06-23 Thread Jakub Kicinski
On Mon, 23 Jun 2025 02:16:12 -0700 Breno Leitao wrote: > So, the selftest for netpoll is already in the mailing list[1], so, we > have two options, now: > > 1) Steal your patch and make [1] depend on it. > 2) Merge the selftest [1] and, then, steal your patch by adding the > bpftrace supp

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

2025-06-23 Thread Breno Leitao
On Sat, Jun 21, 2025 at 06:51:21AM -0700, Jakub Kicinski wrote: > 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-k...@kernel.org/ > > > > Yes, that would be great. I

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

2025-06-21 Thread Jakub Kicinski
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-k...@kernel.org/ > > Yes, that would be great. I think we can iterate until we hit the poll > path, otherwise we skip the

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

2025-06-20 Thread Breno Leitao
On Fri, Jun 13, 2025 at 05:42:33PM -0700, Jakub Kicinski wrote: > On Fri, 13 Jun 2025 05:47:50 -0700 Breno Leitao wrote: > > > Or is there another way that the packets could be observed, e.g., > > > counters. > > > > Unfortunately netpoll doesn't expose any data, thus, it is hard to get > > it.

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

2025-06-13 Thread Jakub Kicinski
On Fri, 13 Jun 2025 05:47:50 -0700 Breno Leitao wrote: > > Or is there another way that the packets could be observed, e.g., > > counters. > > Unfortunately netpoll doesn't expose any data, thus, it is hard to get > it. > > I have plans to create a configfs for netpoll, so, we can check for >

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

2025-06-13 Thread Breno Leitao
On Fri, Jun 13, 2025 at 09:43:35AM -0400, Willem de Bruijn wrote: > Breno Leitao wrote: > > > > +def check_traffic_flowing(cfg: NetDrvEpEnv, netdevnl: NetdevFamily) -> > > > > int: > > > > +"""Check if traffic is flowing on the interface""" > > > > +stat1 = get_stats(cfg, netdevnl) > > >

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

2025-06-13 Thread Willem de Bruijn
Breno Leitao wrote: > Hello Willem, > > On Thu, Jun 12, 2025 at 10:35:54PM -0400, Willem de Bruijn wrote: > > Breno Leitao wrote: > > > Add a basic selftest for the netpoll polling mechanism, specifically > > > targeting the netpoll poll() side. > > > > > > The test creates a scenario where netwo

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

2025-06-13 Thread Breno Leitao
Hello Willem, On Thu, Jun 12, 2025 at 10:35:54PM -0400, Willem de Bruijn wrote: > Breno Leitao wrote: > > Add a basic selftest for the netpoll polling mechanism, specifically > > targeting the netpoll poll() side. > > > > The test creates a scenario where network transmission is running at > > ma

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

2025-06-12 Thread Willem de Bruijn
Breno Leitao wrote: > Add a basic selftest for the netpoll polling mechanism, specifically > targeting the netpoll poll() side. > > The test creates a scenario where network transmission is running at > maximum sppend, and netpoll needs to poll the NIC. This is achieved by: minor type: sppend/spe

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

2025-06-12 Thread Breno Leitao
Add a basic selftest for the netpoll polling mechanism, specifically targeting the netpoll poll() side. The test creates a scenario where network transmission is running at maximum sppend, and netpoll needs to poll the NIC. This is achieved by: 1. Configuring a single RX/TX queue to create cont