]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'packet-sampling-offload'
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 18:44:29 +0000 (13:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 18:44:29 +0000 (13:44 -0500)
commit46eeeb2807bfd5e0e3cc96e7142aea75d08154c9
treee6a1795a19f0932aaec4e74d4d06731a8ba3f6ee
parent59d1c848e143154538e821c553fbe7104498804b
parent31aa5ab3b8b0ec8f39f013fa7997244f5564fe29
Merge branch 'packet-sampling-offload'

Jiri Pirko says:

====================
Add support for offloading packet-sampling

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

v1->v2:
- Reword first patch's commit message
- Fix typo in comment in second patch
- Change order of tc_sample uapi enum to match convention
- Rename act_sample action callback tcf_sample -> tcf_sample_act
====================

Signed-off-by: David S. Miller <davem@davemloft.net>