netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] netdevsim: link and forward skbs between
@ 2023-12-07 17:21 David Wei
  2023-12-07 17:21 ` [PATCH net-next 1/3] netdevsim: allow two netdevsim ports to be David Wei
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: David Wei @ 2023-12-07 17:21 UTC (permalink / raw)
  To: Jakub Kicinski, netdev; +Cc: David S. Miller, Eric Dumazet, Paolo Abeni

This patchset adds the ability to link two netdevsim ports together and
forward skbs between them, similar to veth. The goal is to use netdevsim
for testing features e.g. zero copy Rx using io_uring.

This feature was tested locally on QEMU, and a selftest is included.

David Wei (3):
  netdevsim: allow two netdevsim ports to be connected
  netdevsim: forward skbs from one connected port to another
  netdevsim: add selftest for forwarding skb between connected ports

 drivers/net/netdevsim/bus.c                   |  10 ++
 drivers/net/netdevsim/dev.c                   |  97 +++++++++++++++
 drivers/net/netdevsim/netdev.c                |  25 +++-
 drivers/net/netdevsim/netdevsim.h             |   3 +
 .../drivers/net/netdevsim/forward.sh          | 111 ++++++++++++++++++
 5 files changed, 241 insertions(+), 5 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/netdevsim/forward.sh

-- 
2.39.3


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-12-09 10:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 17:21 [PATCH net-next 0/3] netdevsim: link and forward skbs between David Wei
2023-12-07 17:21 ` [PATCH net-next 1/3] netdevsim: allow two netdevsim ports to be David Wei
2023-12-08 10:59   ` Jiri Pirko
2023-12-08 21:57     ` David Wei
2023-12-09 10:46       ` Jiri Pirko
2023-12-08 17:58   ` Jakub Kicinski
2023-12-08 22:04     ` David Wei
2023-12-07 17:21 ` [PATCH net-next 2/3] netdevsim: forward skbs from one connected David Wei
2023-12-08 11:01   ` Jiri Pirko
2023-12-08 21:58     ` David Wei
2023-12-07 17:21 ` [PATCH net-next 3/3] selftest: netdevsim: add selftest for David Wei
2023-12-08 10:13 ` [PATCH net-next 0/3] netdevsim: link and forward skbs between Jiri Pirko
2023-12-08 21:45   ` David Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).