Received: by 10.213.65.68 with SMTP id h4csp2137100imn; Sun, 8 Apr 2018 20:38:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/3EiDOd6kyhSLaWaa4SQBgMLk9cTbAxVfwLlyaiQBFWmpSJ+EgGcneC/zEk+CAhseObjvJ X-Received: by 2002:a17:902:9a44:: with SMTP id x4-v6mr37172226plv.312.1523245132811; Sun, 08 Apr 2018 20:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523245132; cv=none; d=google.com; s=arc-20160816; b=C5heIOrLM5w/bSftuZIGlDJdzV0DCBgRl8vAjZHiSflWWNA9+cIcK43voSSmz5jDPu bCWLeLx+twPhyNDmHp/oI/f9UaAKs507aZDN1VZ3ClCAJfTC7Crzk4Mj12yCB6oLW/Q4 EUYa8souL8bhlWTdFRWc5iw2xzS9Wci7XIdlrRMKzvIg5+oqa6i+ffqU9VlI36t3Pi1W JSkqYFSZTHaMF5RlrdWm1y5sDX5IvgZFafq7PuRCat4WW6CG4tMRLbFyYZUlVluVJ7ds 4qJDK9PLrFbayNpGwfCGHjXG3NaK/GWfabjXNuEAp6ZJzdIeV8p/V4oIgzVJbiQDQZGY 09fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=zro0/cGf8TaiKOrrmQPIDs9U1ApmnL51QbZCUcL50QY=; b=UlGEdGgqX0w6Vq3S8my3FPuXL7Iy+wHh6c5SdeZaENM+rekUaiHq0yZuZ3ZeBbj65O H/y4kz9YU8f7FSGDVeWtFjM1LPKXQq2JPWqm8i6glsiZMBjxF4JTiDIzBh72LBHdsBJh LpZaZ3FRFt/pKNKQ585/rtSc2/3nacxvW78wHH08pDtJaldy+axuuF5zreMQFKTMbn9Y d8xR/Nbcm3T8ERBZBo7P6Lqlsg0RKzFhTxvMbXVS6N9AGEQqlvi1uyWP6LmHrvymP5dV DybcNS5kGNMg6ItR7ea5m6WJJG/xHZNMSejewIbF6UoNS/yDjJCgvz3+/rOSfX0RZRTN 4Oag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=J7IOVL9v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si11897170pfw.173.2018.04.08.20.38.15; Sun, 08 Apr 2018 20:38:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=J7IOVL9v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbeDIDdN (ORCPT + 99 others); Sun, 8 Apr 2018 23:33:13 -0400 Received: from mail-bn3nam01on0108.outbound.protection.outlook.com ([104.47.33.108]:54803 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753116AbeDIAVT (ORCPT ); Sun, 8 Apr 2018 20:21:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zro0/cGf8TaiKOrrmQPIDs9U1ApmnL51QbZCUcL50QY=; b=J7IOVL9vp/QOB3lFtppja/ikgOm0oHlKm7Img8/Ogiid0E7uOafgnxBuvFYIALiMl+3X7hm4lK9SxlYfewML6KISi0FI3ZL/42PJk0zSKomJoj2zWPetH4Yw1OmijXlgJxAFDAAQzTGWV2AXIovEbAe4pAFBsRQrFaB3HN9hgZ8= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1125.namprd21.prod.outlook.com (52.132.130.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:21:13 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:21:13 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Thomas Falcon , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 175/189] ibmvnic: Reset long term map ID counter Thread-Topic: [PATCH AUTOSEL for 4.15 175/189] ibmvnic: Reset long term map ID counter Thread-Index: AQHTz5hfCxkc3fyu5kikHArEmBOjcQ== Date: Mon, 9 Apr 2018 00:19:07 +0000 Message-ID: <20180409001637.162453-175-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1125;7:jzahV3fHo+gGyOCTS1lXfF3IofTaEvDHxNpqjZFgWXlnvRKbsidd/36Cv2Ni1f/x7fjjUEgs7DaUQVKzNdZuwyOsSsXD8eiNmKzu3i9RKushxsFFVLeoBvCqHGAm0Ua1ym5osNi6y9ldi/CXFXfRoqRmWFh8vVDiUDCeV8Jzj3C8H5PxFP/eb13nh8NEB3EQmXLLOHhN70G0da+WL9sazbGJKz+8szlOFwYwIOYdX8zKnShpNlCoX9NJfUX/2OOX;20:HgsUc/jusb5b3aN5AOLt84b5faPyAGbeuy1SMjFF+fJKUBQuzmm0lOZMlskbOIFo2L6sDbEM0G9Jizj88bSMdbcaZWNnmscXhKobKb5m7lG1wCEjwqPxgeSpnDEtGeEBj464+fU4sv7d74ZJ2IDdpT+8kEGP+Cq6YwvWj73DHI4= X-MS-Office365-Filtering-Correlation-Id: 59732049-acd9-49ce-2ace-08d59dafcd7b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1125; x-ms-traffictypediagnostic: DM5PR2101MB1125: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(104084551191319); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1125;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1125; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(396003)(39380400002)(39860400002)(346002)(199004)(189003)(105586002)(7736002)(8676002)(97736004)(81166006)(106356001)(81156014)(305945005)(14454004)(66066001)(1076002)(102836004)(5250100002)(478600001)(2501003)(2900100001)(22452003)(72206003)(68736007)(26005)(86362001)(575784001)(8936002)(76176011)(6506007)(6116002)(6486002)(186003)(5660300001)(3660700001)(316002)(54906003)(110136005)(25786009)(2906002)(10090500001)(6512007)(3280700002)(6666003)(10290500003)(53936002)(99286004)(86612001)(3846002)(6436002)(486006)(4326008)(2616005)(11346002)(107886003)(36756003)(476003)(446003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1125;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: kwRkCR+96gGUXqc46844sU2ZbhDfUX9e5Xhld5CzbCxMjpCZJtXtN5Ar8yfqgzcSrsHH0oUEUrznZ9U1IQlMmMNBQNjXZ0dLseM/LiSmErUiH8td3StoeHMFCJ9C+cPBhQA4lEx+pe1Uhh+z8I7l0G/tDXgf64mY9CdpI/5bqDy/zZvAnbuLTNJUjMMzW3MSDV6qZn2q8M0J/cOjiIwKmy7omHB/QFp2lZKplqLdeyILlq5dmdVpSVQiGxVXyYuyV2ug0Tl8gQ4I9X7gnyMoM9I+9AHdEbLwXQ883Z6x1CPnehb6w/filbv5sKpYcVO3Z7lyM5G0/HK6dsys+WimiDfGLh8PCKw2RCxSS4TUva6FwfW90eit8WjDPYlxP+XnDDAkkSmzwG/XPtNUfz4daylVvaCXGM09X/1T+ip+gyw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59732049-acd9-49ce-2ace-08d59dafcd7b X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:19:07.5021 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Falcon [ Upstream commit faefaa97215a0c05105d7ae180fe1a3b5979ad1f ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/= ibmvnic.c index 4ba49a98c689..297007678584 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1634,6 +1634,7 @@ static int do_reset(struct ibmvnic_adapter *adapter, return rc; } else if (adapter->req_rx_queues !=3D old_num_rx_queues || adapter->req_tx_queues !=3D old_num_tx_queues) { + adapter->map_id =3D 1; release_rx_pools(adapter); release_tx_pools(adapter); init_rx_pools(netdev); --=20 2.15.1