From: Jamal Hadi Salim Subject: Re: [patch net-next 0/9] mlxsw: implement port mirroring offload Date: Thu, 21 Jul 2016 05:24:10 -0400 Message-ID: <468bb089-e263-47bb-eaf8-1a65b2575092@mojatatu.com> References: <1469089160-4239-1-git-send-email-jiri@resnulli.us> <83af7d8a-5f9c-aa3e-53cd-641cb175f66d@mojatatu.com> <20160721090706.GA2171@nanopsycho.orion> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, davem@davemloft.net, yotamg@mellanox.com, eladr@mellanox.com, idosch@mellanox.com, nogahf@mellanox.com, ogerlitz@mellanox.com To: Jiri Pirko Return-path: Received: from mail-lf0-f50.google.com ([209.85.215.50]:33985 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbcGUJYP (ORCPT ); Thu, 21 Jul 2016 05:24:15 -0400 Received: by mail-lf0-f50.google.com with SMTP id l69so56212528lfg.1 for ; Thu, 21 Jul 2016 02:24:15 -0700 (PDT) In-Reply-To: <20160721090706.GA2171@nanopsycho.orion> Sender: netdev-owner@vger.kernel.org List-ID: On 16-07-21 05:07 AM, Jiri Pirko wrote: > Thu, Jul 21, 2016 at 11:00:33AM CEST, jhs@mojatatu.com wrote: >> On 16-07-21 04:19 AM, Jiri Pirko wrote: >>> From: Jiri Pirko >>> [..] > >> infrastructure. If answer is yes, thencould we have used >> a classifier like u32 here? >> i.e something like: >> tc filter add dev eth25 xxxx protocol all \ >> u32 match u32 0 0 \ >> action mirred ... > > That could be used. But I believe it is nicer to have explicit match-all > classifier for this case. That puts nice limit to what could be matched. > Iam indifferent. If you are planning to use u32 for ACL then it would make sense to support span + ACL with the same classifier. > Could you point to that? checkpatch.pl does not say anything and I also > don't see anything. > scripts/Lindent (but you need to be a little careful with it) Generally the coding style guide in Documentation is sufficient. cheers, jamal