From: David S. Miller Date: Tue, 24 Jan 2017 18:44:29 +0000 (-0500) Subject: Merge branch 'packet-sampling-offload' X-Git-Tag: v4.11-rc1~124^2~339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36f877804c2471226b6c5cd72232c707e0e4c497;p=platform%2Fkernel%2Flinux-exynos.git 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 --- 36f877804c2471226b6c5cd72232c707e0e4c497