From: David Miller Subject: Re: [PATCH net-next] liquidio: Fix an issue with multiple switchdev enable disables Date: Sat, 04 Nov 2017 09:18:31 +0900 (KST) Message-ID: <20171104.091831.822922406654465563.davem@davemloft.net> References: <20171103191744.GA25280@felix-thinkpad.cavium.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, raghu.vatsavayi@cavium.com, derek.chickles@cavium.com, satananda.burla@cavium.com, vijaya.guvva@cavium.com To: felix.manlunas@cavium.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:51686 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755993AbdKDASf (ORCPT ); Fri, 3 Nov 2017 20:18:35 -0400 In-Reply-To: <20171103191744.GA25280@felix-thinkpad.cavium.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Felix Manlunas Date: Fri, 3 Nov 2017 12:17:44 -0700 > From: Vijaya Mohan Guvva > > Return success if the same dispatch function is being registered for > a given opcode and subcode, there by allow multiple switchdev enable > and disables. > > Signed-off-by: Vijaya Mohan Guvva > Signed-off-by: Satanand Burla > Signed-off-by: Felix Manlunas Applied, thanks. But I do have a question, are you properly reference counting these dispatch function objects? I can't see how you can properly handle multiple enable/disable otherwise. Thank you.