linux/include/net/tc_act
Yotam Gigi 5c5670fae4 net/sched: Introduce sample tc action
This action allows the user to sample traffic matched by tc classifier.
The sampling consists of choosing packets randomly and sampling them using
the psample module. The user can configure the psample group number, the
sampling rate and the packet's truncation (to save kernel-user traffic).

Example:
To sample ingress traffic from interface eth1, one may use the commands:

tc qdisc add dev eth1 handle ffff: ingress

tc filter add dev eth1 parent ffff: \
	   matchall action sample rate 12 group 4

Where the first command adds an ingress qdisc and the second starts
sampling randomly with an average of one sampled packet per 12 packets on
dev eth1 to psample group 4.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-24 13:44:28 -05:00
..
tc_bpf.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_connmark.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_csum.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_defact.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_gact.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_ife.h net sched ife action: add 16 bit helpers 2016-09-19 21:55:28 -04:00
tc_ipt.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_mirred.h net/sched: tc_mirred: Rename public predicates 'is_tcf_mirred_redirect' and 'is_tcf_mirred_mirror' 2016-10-14 10:23:06 -04:00
tc_nat.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_pedit.h net_sched: get rid of struct tcf_common 2016-07-25 21:49:20 -07:00
tc_sample.h net/sched: Introduce sample tc action 2017-01-24 13:44:28 -05:00
tc_skbedit.h skbedit: allow the user to specify bitmask for mark 2016-10-27 16:07:25 -04:00
tc_skbmod.h net_sched: Introduce skbmod action 2016-09-15 19:33:47 -04:00
tc_tunnel_key.h net/sched: act_tunnel_key: add helper inlines to access tcf_tunnel_key 2016-11-09 13:41:53 -05:00
tc_vlan.h net_sched: act_vlan: add helper inlines to access tcf_vlan info 2016-09-23 07:22:11 -04:00