[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170124114928.GB16485@penelope.horms.nl>
Date: Tue, 24 Jan 2017 12:49:29 +0100
From: Simon Horman <simon.horman@...ronome.com>
To: Yotam Gigi <yotamg@...lanox.com>
Cc: Jiri Pirko <jiri@...nulli.us>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
Ido Schimmel <idosch@...lanox.com>,
Elad Raz <eladr@...lanox.com>,
Nogah Frankel <nogahf@...lanox.com>,
Or Gerlitz <ogerlitz@...lanox.com>,
"jhs@...atatu.com" <jhs@...atatu.com>,
"geert+renesas@...der.be" <geert+renesas@...der.be>,
"stephen@...workplumber.org" <stephen@...workplumber.org>,
"xiyou.wangcong@...il.com" <xiyou.wangcong@...il.com>,
"linux@...ck-us.net" <linux@...ck-us.net>,
"roopa@...ulusnetworks.com" <roopa@...ulusnetworks.com>,
"john.fastabend@...il.com" <john.fastabend@...il.com>,
"mrv@...atatu.com" <mrv@...atatu.com>
Subject: Re: [patch net-next v2 2/4] net/sched: Introduce sample tc action
On Tue, Jan 24, 2017 at 08:39:37AM +0000, Yotam Gigi wrote:
> >-----Original Message-----
> >From: Simon Horman [mailto:simon.horman@...ronome.com]
> >Sent: Tuesday, January 24, 2017 10:33 AM
> >To: Jiri Pirko <jiri@...nulli.us>
> >Cc: netdev@...r.kernel.org; davem@...emloft.net; Yotam Gigi
> ><yotamg@...lanox.com>; Ido Schimmel <idosch@...lanox.com>; Elad Raz
> ><eladr@...lanox.com>; Nogah Frankel <nogahf@...lanox.com>; Or Gerlitz
> ><ogerlitz@...lanox.com>; jhs@...atatu.com; geert+renesas@...der.be;
> >stephen@...workplumber.org; xiyou.wangcong@...il.com; linux@...ck-us.net;
> >roopa@...ulusnetworks.com; john.fastabend@...il.com; mrv@...atatu.com
> >Subject: Re: [patch net-next v2 2/4] net/sched: Introduce sample tc action
> >
> >On Mon, Jan 23, 2017 at 11:07:09AM +0100, Jiri Pirko wrote:
> >> From: Yotam Gigi <yotamg@...lanox.com>
> >>
> >> 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@...lanox.com>
> >> Signed-off-by: Jiri Pirko <jiri@...lanox.com>
> >> Acked-by: Jamal Hadi Salim <jhs@...atatu.com>
> >
> >Reviewed-by: Simon Horman <simon.horman@...ronome.com>
> >
> >Is the tc user-space (iproute2) code available yet?
>
> Yes it is. I thought about sending it the moment the kernel patches gets
> accepted.
>
> Do you want it to send it directly to you?
I'm happy to wait for now.
Powered by blists - more mailing lists