]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: add software driver for testing offloads
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 1 Dec 2017 23:08:58 +0000 (15:08 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 2 Dec 2017 23:27:57 +0000 (00:27 +0100)
commit71f0f8e2a1b4a23abbee9345312f154da1c4d12b
tree215f9edf3f07ed1a784998150dda011819a71184
parent91417da8a2169eb552cfe1fd650f952a0190e055
netdevsim: add software driver for testing offloads

To be able to run selftests without any hardware required we
need a software model.  The model can also serve as an example
implementation for those implementing actual HW offloads.
The dummy driver have previously been extended to test SR-IOV,
but the general consensus seems to be against adding further
features to it.

Add a new driver for purposes of software modelling only.
eBPF and SR-IOV will be added here shortly, others are invited
to further extend the driver with their offload models.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
MAINTAINERS
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/netdevsim/Makefile [new file with mode: 0644]
drivers/net/netdevsim/netdev.c [new file with mode: 0644]
drivers/net/netdevsim/netdevsim.h [new file with mode: 0644]