Re: [PATCH net-next v3 8/8] selftests: drv-net: add netkit devmem tests

From: Stanislav Fomichev

Date: Fri May 08 2026 - 11:17:15 EST


On 05/07, Bobby Eshleman wrote:
> From: Bobby Eshleman <bobbyeshleman@xxxxxxxx>
>
> Add nk_devmem.py with four tests for TCP devmem through a netkit device:
>
> These tests are just duplicates of the original devmem tests, with some
> adjusted parameters such as telling ncdevmem to avoid device setup
> (since it only has access to netkit, not a phys device).
>
> Each test uses NetDrvContEnv with primary_rx_redirect=True to set up the
> BPF redirect program on the primary netkit interface.
>
> The NIC (HDS, RSS, queue lease) is configured once in main() before
> ksft_run() and torn down in a finally block via cleanup_nic(), mirroring
> the nk_qlease.py pattern. This avoids re-toggling NIC settings around
> every test case.
>
> Signed-off-by: Bobby Eshleman <bobbyeshleman@xxxxxxxx>

Acked-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>