Traffic Sampling

modulename: act_sample.ko

configname: CONFIG_NET_ACT_SAMPLE

Linux Kernel Configuration
└─>Networking support
└─>Networking options
└─>QoS and/or fair queueing
└─>Traffic Sampling
In linux kernel since version 4.2 (release Date: 2015-08-30)  
Say Y here to allow packet sampling tc action. The packet sample
action consists of statistically choosing packets and sampling
them using the psample module.

To compile this code as a module, choose M here: the
module will be called act_sample.

source code: