[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240419220857.2065615-1-dw@davidwei.uk>
Date: Fri, 19 Apr 2024 15:08:55 -0700
From: David Wei <dw@...idwei.uk>
To: netdev@...r.kernel.org
Cc: Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>
Subject: [PATCH net-next v2 0/2] netdevsim: add NAPI support
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.
-----
Changes since v1:
* Use sk_buff_head instead of a list for per-rq skb queue
* Drop napi_schedule() if skb queue is not empty in napi poll
* Remove netif_carrier_on() in open()
* Remove unused page pool ptr in struct netdevsim
* Up the netdev in NetDrvEnv automatically
* Pass Netdev Netlink as a param instead of using globals
* Remove unused Python imports in selftest
David Wei (2):
netdevsim: add NAPI support
net: selftest: add test for netdev netlink queue-get API
drivers/net/netdevsim/netdev.c | 210 +++++++++++++++++-
drivers/net/netdevsim/netdevsim.h | 8 +-
tools/testing/selftests/drivers/net/Makefile | 1 +
.../selftests/drivers/net/lib/py/env.py | 6 +-
tools/testing/selftests/drivers/net/queues.py | 59 +++++
tools/testing/selftests/net/lib/py/nsim.py | 4 +-
6 files changed, 272 insertions(+), 16 deletions(-)
create mode 100755 tools/testing/selftests/drivers/net/queues.py
--
2.43.0
Powered by blists - more mailing lists