diff options
author | David Wei <dw@davidwei.uk> | 2024-05-07 19:32:27 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-09 04:59:47 +0300 |
commit | 3762ec05a9fbda16aaaa2568df679ab8ad13f38d (patch) | |
tree | a5e940eedab117a3a8e6b4ba45832e3ff0a756c8 /tools/testing/selftests/drivers/usb | |
parent | 1d0dc857b5d8711ff0f037bea9a0c13049c1763c (diff) | |
download | linux-3762ec05a9fbda16aaaa2568df679ab8ad13f38d.tar.xz |
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 <dw@davidwei.uk>
Link: https://lore.kernel.org/r/20240507163228.2066817-2-dw@davidwei.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/drivers/usb')
0 files changed, 0 insertions, 0 deletions