diff options
| author | David Wei <[email protected]> | 2024-05-07 16:32:27 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-09 01:59:47 +0000 |
| commit | 3762ec05a9fbda16aaaa2568df679ab8ad13f38d (patch) | |
| tree | a5e940eedab117a3a8e6b4ba45832e3ff0a756c8 /tools/testing/selftests/net/lib/py/nsim.py | |
| parent | selftests: drv-net: add checksum tests (diff) | |
| download | kernel-3762ec05a9fbda16aaaa2568df679ab8ad13f38d.tar.gz kernel-3762ec05a9fbda16aaaa2568df679ab8ad13f38d.zip | |
netdevsim: add NAPI support
Add NAPI support to netdevim, similar to veth.
* Add a nsim_rq rx queue structure to hold a NAPI instance and a skb
queue.
* During xmit, store the skb in the peer skb queue and schedule NAPI.
* During napi_poll(), drain the skb queue and pass up the stack.
* Add assoc between rxq and NAPI instance using netif_queue_set_napi().
Signed-off-by: David Wei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/nsim.py')
0 files changed, 0 insertions, 0 deletions
