From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roopa Prabhu Subject: Re: [patch net-next RFC 4/6] Introduce sample tc action Date: Wed, 19 Oct 2016 00:33:19 -0700 Message-ID: <580721BF.4010303@cumulusnetworks.com> References: <1476276069-5315-1-git-send-email-jiri@resnulli.us> <1476276069-5315-5-git-send-email-jiri@resnulli.us> <58025A90.9010608@cumulusnetworks.com> <81e49d64-e0bc-2f43-7a9c-daefb12a4b8a@mojatatu.com> <58056A08.5070809@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jamal Hadi Salim , Jiri Pirko , "netdev@vger.kernel.org" , "davem@davemloft.net" , Ido Schimmel , Elad Raz , Nogah Frankel , Or Gerlitz , "geert+renesas@glider.be" , "stephen@networkplumber.org" , "xiyou.wangcong@gmail.com" , "linux@roeck-us.net" , Shrijeet Mukherjee , Yotam Gigi To: Yotam Gigi Return-path: Received: from mail-pf0-f179.google.com ([209.85.192.179]:36852 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941906AbcJSO0i (ORCPT ); Wed, 19 Oct 2016 10:26:38 -0400 Received: by mail-pf0-f179.google.com with SMTP id e6so17202705pfk.3 for ; Wed, 19 Oct 2016 07:26:38 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 10/18/16, 3:58 AM, Yotam Gigi wrote: > On 16-10-15 12:34 PM, Roopa Prabhu wrote: [snip] >> The OVS implementation is a good example, the metadata includes all the >> actions applied >>>> to the packet in the kernel data path. >>>> >>> Again not sure what the use case would be (and why waste such space >>> especially when you are sending over the wire with such details). >> All this is being used currently.., But, this can be other api's sflow uses >> for monitoring. >> http://openvswitch.org/support/ovscon2014/17/1400-ovs-sflow.pdf >> >> Does not have to be part of the main/basic sampling api... >> it was just an example. >> > I guess that making the API extensible solves this, isn't it? yes, that might help... Just wanted to bring up the question/clarification on using mark again tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: \ matchall action sample rate 12 mark 17 tc filter add parent ffff: dev eth1 protocol all \ u32 match mark 172 0xff action mirred egress redirect dev dummy0 Like we discussed @ netdev, mark can be used by other things in the system. A request to sample on an interface cannot be disruptive. Does this require mark to be not used elsewhere in the system when sampling is enabled on an interface ?