From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:34074 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346AbeBUTWR (ORCPT ); Wed, 21 Feb 2018 14:22:17 -0500 Date: Wed, 21 Feb 2018 14:22:15 -0500 (EST) Message-Id: <20180221.142215.2049414269643684658.davem@davemloft.net> To: nfont@linux.vnet.ibm.com Cc: netdev@vger.kernel.org, jallen@linux.vnet.ibm.com, tlfalcon@linux.vnet.ibm.com Subject: Re: [PATCH V3 net-next 0/5] ibmvnic: Make driver resources dynamic From: David Miller In-Reply-To: <151906852849.50602.3447088935471280931.stgit@ltcalpine2-lp14.aus.stglabs.ibm.com> References: <151906852849.50602.3447088935471280931.stgit@ltcalpine2-lp14.aus.stglabs.ibm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: Nathan Fontenot Date: Mon, 19 Feb 2018 13:29:55 -0600 > The ibmvnic driver needs to be able to handle the number of tx/rx > sub-crqs changing during a reset of the driver. To do this several > changes need to be made. First the num_active_[tx|rx]_pools > counters need to be re-named to num_active_[tc|rx]_scrqs, and > updated after resource initialization. > > With this change we can now release and init the sub crqs and napi > (for rx sub crqs) when the number of sub crqs change. > > Lastly, the stats buffer allocation is updated to always allocate > the maximum number of sub-crqs count of stats buffers. Series applied, thanks Nathan.