From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [PATCH net-next] net/sched: cls_flower: Add user specified data Date: Sat, 14 Jan 2017 15:48:55 +0100 Message-ID: <20170114144855.GA1886@nanopsycho.orion> References: <1483362833-52114-1-git-send-email-paulb@mellanox.com> <14675f63-4212-2f72-da4c-cd24b9d10881@mojatatu.com> <586A9A9F.4030002@gmail.com> <6b671aaf-d35d-70a5-65e0-40308baeb471@mojatatu.com> <20170108171902.GH1971@nanopsycho> <5873D523.4030301@gmail.com> <68e41fe4-5c4c-e159-fbfc-17d06638707d@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: John Fastabend , Paul Blakey , "David S. Miller" , netdev@vger.kernel.org, Jiri Pirko , Hadar Hen Zion , Or Gerlitz , Roi Dayan , Roman Mashak , Simon Horman To: Jamal Hadi Salim Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:33485 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbdANOs7 (ORCPT ); Sat, 14 Jan 2017 09:48:59 -0500 Received: by mail-wm0-f66.google.com with SMTP id r144so18823511wme.0 for ; Sat, 14 Jan 2017 06:48:59 -0800 (PST) Content-Disposition: inline In-Reply-To: <68e41fe4-5c4c-e159-fbfc-17d06638707d@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: Sat, Jan 14, 2017 at 01:56:35PM CET, jhs@mojatatu.com wrote: >On 17-01-09 01:23 PM, John Fastabend wrote: >> On 17-01-08 09:19 AM, Jiri Pirko wrote: > >[..] >> > This should never be interpreted by kernel. I think this would be good >> > to make clear in the comment in the code. >> > >> >> Ah OK I had assumed you would be pushing this via tc_cls_flower_offload into >> the driver in a follow up patch. But if it lives in kernel space as opaque >> cookie guess its no different then other id fields order/prio/cookie. >> >> Thanks for clarifying. > > >I think the feature makes a lot of sense (as is the action variant). >But can we make it: >a) fixed size Can you elaborate on why is this needed? >b) apply to all classifiers >c) please post a usage example via iproute2/tc > >I am going to post the action variant in the next while - will do some more >testing first. I believe we have to make the cls and ats cookies exactly the same. > >cheers, >jamal