From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ibmvnic: Reset long term map ID counter Date: Fri, 09 Feb 2018 14:20:56 -0500 (EST) Message-ID: <20180209.142056.1161310394668118833.davem@davemloft.net> References: <1518198069-11335-1-git-send-email-tlfalcon@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jallen@linux.vnet.ibm.com, nfont@linux.vnet.ibm.com To: tlfalcon@linux.vnet.ibm.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:49168 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbeBITU6 (ORCPT ); Fri, 9 Feb 2018 14:20:58 -0500 In-Reply-To: <1518198069-11335-1-git-send-email-tlfalcon@linux.vnet.ibm.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Thomas Falcon Date: Fri, 9 Feb 2018 11:41:09 -0600 > When allocating RX or TX buffer pools, the driver needs to provide a > unique mapping ID to firmware for each pool. This value is assigned > using a counter which is incremented after a new pool is created. The > ID can be an integer ranging from 1-255. When migrating to a device > that requests a different number of queues, this value was not being > reset properly. As a result, after enough migrations, the counter > exceeded the upper bound and pool creation failed. This is fixed by > resetting the counter to one in this case. > > Signed-off-by: Thomas Falcon Applied, thanks Thomas.