From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: Re: [PATCH net-next] net/sched: cls_flower: Add user specified data Date: Sat, 14 Jan 2017 10:03:17 -0500 Message-ID: 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> <20170114144855.GA1886@nanopsycho.orion> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Jiri Pirko Return-path: Received: from mail-it0-f66.google.com ([209.85.214.66]:34587 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802AbdANPDx (ORCPT ); Sat, 14 Jan 2017 10:03:53 -0500 Received: by mail-it0-f66.google.com with SMTP id o185so7984501itb.1 for ; Sat, 14 Jan 2017 07:03:19 -0800 (PST) In-Reply-To: <20170114144855.GA1886@nanopsycho.orion> Sender: netdev-owner@vger.kernel.org List-ID: On 17-01-14 09:48 AM, Jiri Pirko wrote: > Sat, Jan 14, 2017 at 01:56:35PM CET, jhs@mojatatu.com wrote: >> 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? > My experience with the action bits its easier to debug and enforces some discipline to not abuse the amount of RAM used. If you have 1M rules, one extra 128M is easier on the system than a few Gigs. > >> 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. > Probably - they are both needed. See the patch I just posted. cheers, jamal