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

2025-06-24 Thread Breno Leitao
On Mon, Jun 23, 2025 at 06:30:06PM -0700, Jakub Kicinski wrote: > Could you turn this into a docstring? Sure, I will fix all of them except C0301, which is a error message string and I prefer not to truncate. > > +def set_single_rx_tx_queue(interface_name: str) -> None: > > +"""Set the numb

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

2025-06-24 Thread Jakub Kicinski
On Tue, 24 Jun 2025 15:27:27 +0100 Breno Leitao wrote: > > > +try: > > > +for key, value in config_data.items(): > > > +if DEBUG: > > > +ksft_pr(f"Setting {key} to {value}") > > > +with open( > > > +f"{NETCONSOLE_CONFIGFS_PATH}/{ta

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

2025-06-23 Thread Jakub Kicinski
On Fri, 20 Jun 2025 02:38:31 -0700 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 speed, and netpoll needs to poll the NIC. This is ac

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

2025-06-20 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 speed, and netpoll needs to poll the NIC. This is achieved by: 1. Configuring a single RX/TX queue to create conte