mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 05:55:02 +08:00
a8700c3dd0
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>
20 lines
349 B
Makefile
20 lines
349 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_NETDEVSIM) += netdevsim.o
|
|
|
|
netdevsim-objs := \
|
|
netdev.o dev.o ethtool.o fib.o bus.o health.o udp_tunnels.o
|
|
|
|
ifeq ($(CONFIG_BPF_SYSCALL),y)
|
|
netdevsim-objs += \
|
|
bpf.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_XFRM_OFFLOAD),)
|
|
netdevsim-objs += ipsec.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_PSAMPLE),)
|
|
netdevsim-objs += psample.o
|
|
endif
|