]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: Add dummy psample implementation
authorIdo Schimmel <idosch@nvidia.com>
Sun, 14 Mar 2021 12:19:32 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 22:00:43 +0000 (15:00 -0700)
commit43439df2da454021ae0a208fd21b0b1591a1607a
treea8abac5b59155b2ac476a33c7641ac2b1d59fdcd
parent1f18799da9a0430d180018dfbe8f1a516d2cc40a
netdevsim: Add dummy psample implementation

Allow netdevsim to report "sampled" packets to the psample module by
periodically generating packets from a work queue. The behavior can be
enabled / disabled (default) and the various meta data attributes can be
controlled via debugfs knobs.

This implementation enables both testing of the psample module with all
the optional attributes as well as development of user space
applications on top of psample such as hsflowd and a Wireshark dissector
for psample generic netlink packets.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig
drivers/net/netdevsim/Makefile
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h
drivers/net/netdevsim/psample.c [new file with mode: 0644]