diff options
author | David S. Miller <davem@davemloft.net> | 2017-01-24 13:44:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-24 13:44:29 -0500 |
commit | 36f877804c2471226b6c5cd72232c707e0e4c497 (patch) | |
tree | e6a1795a19f0932aaec4e74d4d06731a8ba3f6ee /drivers/net/dummy.c | |
parent | d36db83bac41e46cb89bd1ef57e049ce80a7433a (diff) | |
parent | 98d0f7b9acda0cf15259f83ca1758ad6017c0942 (diff) |
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>
Diffstat (limited to 'drivers/net/dummy.c')
0 files changed, 0 insertions, 0 deletions