linux_dsm_epyc7002/include/uapi/linux/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
..
Kbuild net/sched: Introduce sample tc action 2017-01-24 13:44:28 -05:00
tc_bpf.h bpf: rework prog_digest into prog_tag 2017-01-16 14:03:31 -05:00
tc_connmark.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04:00
tc_csum.h net/sched: act_csum: compute crc32c on SCTP packets 2017-01-09 14:36:57 -05:00
tc_defact.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04:00
tc_gact.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04:00
tc_ife.h net sched ife action: Introduce skb tcindex metadata encap decap 2016-09-19 21:55:28 -04:00
tc_ipt.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04:00
tc_mirred.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04:00
tc_nat.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04:00
tc_pedit.h sched: align nlattr properly when needed 2016-04-26 12:00:49 -04: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 UDP dst port option 2016-11-09 13:41:55 -05:00
tc_vlan.h net/sched: act_vlan: Introduce TCA_VLAN_ACT_MODIFY vlan action 2016-09-22 01:34:20 -04:00