From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: Re: [patch net-next v2 7/9] mlxsw: spectrum: Implement chain template hinting Date: Tue, 26 Jun 2018 13:20:27 +0300 Message-ID: <20180626102027.GA10712@splinter.mtl.com> References: <20180626080000.12964-1-jiri@resnulli.us> <20180626080000.12964-8-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, davem@davemloft.net, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jakub.kicinski@netronome.com, simon.horman@netronome.com, john.hurley@netronome.com, dsahern@gmail.com, mlxsw@mellanox.com To: Jiri Pirko Return-path: Received: from out2-smtp.messagingengine.com ([66.111.4.26]:43191 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933478AbeFZKUa (ORCPT ); Tue, 26 Jun 2018 06:20:30 -0400 Content-Disposition: inline In-Reply-To: <20180626080000.12964-8-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jun 26, 2018 at 09:59:58AM +0200, Jiri Pirko wrote: > From: Jiri Pirko > > Since cld_flower provides information about the filter template for s/cld_flower/cls_flower/ > specific chain, use this information in order to prepare a region. > Use the template to find out what elements are going to be used > and pass that down to mlxsw_sp_acl_tcam_group_add(). Later on, when the > first filter is inserted, the mlxsw_sp_acl_tcam_group_use_patterns() > function would use this element usage information instead of looking > up a pattern. > > Signed-off-by: Jiri Pirko Reviewed-by: Ido Schimmel