mbox series

[v1,0/2] netdevsim: add NAPI support

Message ID 20240416051527.1657233-1-dw@davidwei.uk (mailing list archive)
Headers show
Series netdevsim: add NAPI support | expand

Message

David Wei April 16, 2024, 5:15 a.m. UTC
Add NAPI support to netdevsim and register its Rx queues with NAPI
instances. Then add a selftest using the new netdev Python selftest
infra to exercise the existing Netdev Netlink API, specifically the
queue-get API.

This expands test coverage and further fleshes out netdevsim as a test
device. It's still my goal to make it useful for testing things like
flow steering and ZC Rx.

David Wei (2):
  netdevsim: add NAPI support
  net: selftest: add test for netdev netlink queue-get API

 drivers/net/netdevsim/netdev.c                | 227 +++++++++++++++++-
 drivers/net/netdevsim/netdevsim.h             |   7 +
 tools/testing/selftests/drivers/net/Makefile  |   1 +
 .../selftests/drivers/net/lib/py/env.py       |  10 +-
 tools/testing/selftests/drivers/net/queues.py |  67 ++++++
 tools/testing/selftests/net/lib/py/nsim.py    |   4 +-
 6 files changed, 301 insertions(+), 15 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/queues.py