From: Jiri Pirko <j...@resnulli.us> Date: Mon, 23 Jan 2017 11:07:07 +0100
> From: Jiri Pirko <j...@mellanox.com> > > Yotam says: > > The first patch introduces the psample module, a netlink channel dedicated > to packet sampling implemented using generic netlink. This module provides > a generic way for kernel modules to sample packets, while not being tied > to any specific subsystem like NFLOG. > > The second patch adds the sample tc action, which uses psample to randomly > sample packets that match a classifier. The user can configure the psample > group number, the sampling rate and the packet's truncation (to save > kernel-user traffic). > > The last two patches add the support for offloading the matchall-sample > tc command in the mlxsw driver, for ingress qdiscs. > > An example for psample usage can be found in the libpsample project at: > https://github.com/Mellanox/libpsample Series applied, thank you.