From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: [patch net-next v2 00/20] net: sched: convert cls ndo_setup_tc offload calls to per-block callbacks Date: Wed, 25 Oct 2017 16:48:18 +0300 Message-ID: References: <20171019135048.4306-1-jiri@resnulli.us> <20171021.030446.967534081159629805.davem@davemloft.net> <20171025121503.GA1910@nanopsycho> <20171025134211.GA1976@nanopsycho.orion> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Duyck , David Miller , Netdev , Jamal Hadi Salim , Cong Wang , mlxsw@mellanox.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , Michael Chan , Ganesh Goudar , Jeff Kirsher , Saeed Mahameed , Matan Barak , Leon Romanovsky , idosch@mellanox.com, Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Simon Horman , To: Jiri Pirko Return-path: Received: from mail-eopbgr50065.outbound.protection.outlook.com ([40.107.5.65]:61600 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751589AbdJYNs1 (ORCPT ); Wed, 25 Oct 2017 09:48:27 -0400 In-Reply-To: <20171025134211.GA1976@nanopsycho.orion> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/25/2017 4:42 PM, Jiri Pirko wrote: > Yes, that is intentional. The thing is, there might be multiple block > callbacks registered and to be called. If there is a fail with one, we > need to cleanup all. So in your case you have 1 cb registered, that > means that in case of an error during insertion, you will get cb called > to remove. Driver has to take care of that. I was checking that and was > under impression that mlx5 deals with that. I see, yeah, in mlx5 we identify that the flow doesn't exist in our tables, I sent a patch that deals with that and also another issue, lets discuss it there.