From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 4ACC112A8 for ; Fri, 6 May 2016 12:36:14 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 06 May 2016 03:36:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,586,1455004800"; d="scan'208";a="970014470" Received: from dwdohert-dpdk.ir.intel.com ([163.33.210.69]) by orsmga002.jf.intel.com with ESMTP; 06 May 2016 03:36:12 -0700 To: Stephen Hemminger , Bernard Iremonger References: <1462461300-9962-1-git-send-email-bernard.iremonger@intel.com> <1462461300-9962-2-git-send-email-bernard.iremonger@intel.com> <20160505101233.191151ac@xeon-e3> Cc: dev@dpdk.org From: Declan Doherty Message-ID: <7f47b47d-945a-c265-4db3-dc0d6850a348@intel.com> Date: Fri, 6 May 2016 11:32:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160505101233.191151ac@xeon-e3> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/5] bonding: replace spinlock with read/write lock X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2016 10:36:14 -0000 On 05/05/16 18:12, Stephen Hemminger wrote: > On Thu, 5 May 2016 16:14:56 +0100 > Bernard Iremonger wrote: > >> Fixes: a45b288ef21a ("bond: support link status polling") >> Signed-off-by: Bernard Iremonger > > You know an uncontested reader/writer lock is significantly slower > than a spinlock. > As we can have multiple readers of the active slave list / primary slave, basically any tx/rx burst call needs to protect against a device being removed/closed during it's operation now that we support hotplugging, in the worst case this could mean we have 2(rx+tx) * queues possibly using the active slave list simultaneously, in that case I would have thought that a spinlock would have a much more significant affect on performance?