Re: [patch net-next 2/4] net/sched: Introduce sample tc action

2017-01-22 Thread Roman Mashak
Jiri Pirko writes: > From: Yotam Gigi > > 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

RE: [patch net-next 2/4] net/sched: Introduce sample tc action

2017-01-22 Thread Yotam Gigi
+rene...@glider.be; step...@networkplumber.org; >xiyou.wangc...@gmail.com; li...@roeck-us.net; ro...@cumulusnetworks.com; >john.fastab...@gmail.com; simon.hor...@netronome.com; m...@mojatatu.com >Subject: Re: [patch net-next 2/4] net/sched: Introduce sample tc action > >On 17-01-22 06:44 AM,

Re: [patch net-next 2/4] net/sched: Introduce sample tc action

2017-01-22 Thread Jamal Hadi Salim
On 17-01-22 06:44 AM, Jiri Pirko wrote: diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c new file mode 100644 index 000..24e20e4 --- /dev/null +++ b/net/sched/act_sample.c @@ -0,0 +1,274 @@ +/* + * net/sched/act_sample.c - Packet samplig tc action typo: "Sampling" +static in