Received: by 10.213.65.68 with SMTP id h4csp2113673imn; Sun, 8 Apr 2018 20:03:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx49p2r4Cq+hJTxB2awzHKdbUZXtDh/Fdrl/c4LXRpjwQFkBrKixPvZNVqxVtgh5NMGJMxspP X-Received: by 2002:a17:902:6a85:: with SMTP id n5-v6mr37271546plk.313.1523243023166; Sun, 08 Apr 2018 20:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243023; cv=none; d=google.com; s=arc-20160816; b=xVr0L1v9yN/LaCd/5+5ZG0cs0g7gZolCF4L7nH4Otiwn4cfkqKfvBJ5eK/zoAXQino b1K0Xs4sQL+8/JAxxWvo+jgp+r6iJZR2WvgTtKxU2TkhyBukaBoLs381sFxCuTrifky5 q+0dUHf7Wa3NBxvvc5MAY9//wuWErbnV5R4buyQ/eEv8nTpFwrWJ6dLO86txCXjfoFd0 swv0oQWQMnMpe3lv4QxExrIfzofGTiE9QnAUxcXmug8fBAyfLie9BOdAvXlkZX22WmCe vZbCOvyFP0UIpBcEFllnt8DR8wPQyb2qk+MZplzQbbsVSgPKO7d32asRn5/PqMc5fqWQ 3T0Q== 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=kx2obDl6jSEpFoiD/RontV0PhWfDoseJIl1yBnOt0+E=; b=Vbd5KumNBf8EuX2gC8LCqqnF1iBel92eJ/ai3jEi33jUb9t/uWvIQfrJT+xekuvVIG UsXB3mFe5aD9ncj05+4Z4pgv/ugpL+O1/WMa6+TsdI1Id9SV1eoJFqrtDarDZKXKHALU dimTn//llG2WWmf/l4QOfN1d7EN8EPGjqJc1srz1uqBnyJEhtIs8Cq/sjZDeIKET9vbI I6+vc8O3DTFRB4GLOH5T9bd7fzNJCkjAlkl6sWNSJH1CpiGVaAlWCXA6tyB6Ng0tqUbn ciUMmMEgN6F947dy+4YgxiIBp+34p2Lg7s4siX5PlsXww3YEdsCZKfB4Tj0jzabcd1/p qAkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Z4PiY51N; 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 s187si10588953pgb.729.2018.04.08.20.03.06; Sun, 08 Apr 2018 20:03:43 -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=Z4PiY51N; 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 S1753927AbeDIAS7 (ORCPT + 99 others); Sun, 8 Apr 2018 20:18:59 -0400 Received: from mail-bn3nam01on0092.outbound.protection.outlook.com ([104.47.33.92]:62923 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753744AbeDIASp (ORCPT ); Sun, 8 Apr 2018 20:18:45 -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=kx2obDl6jSEpFoiD/RontV0PhWfDoseJIl1yBnOt0+E=; b=Z4PiY51NQyX332gukE019lYcC37pXG7xVMQ9NwqtlziXmyzWnCbmPvNHk0FC64EeIEtuiHfhbaLwM2h2mVA+n2twq38eCNY1WWMAqgshAtrA89mt+jYpJC8ty9xzon/G5DCEkrRjB4LMG4y/2AZvB4G2TH+hgDm0GD/GM7+9nUs= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) 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:18:38 +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:18:38 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Amritha Nambiar , Jeff Kirsher , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 080/189] i40e: Fix channel addition in reset flow Thread-Topic: [PATCH AUTOSEL for 4.15 080/189] i40e: Fix channel addition in reset flow Thread-Index: AQHTz5gw3CXPEncl6UyTMhLOaz+6BA== Date: Mon, 9 Apr 2018 00:17:48 +0000 Message-ID: <20180409001637.162453-80-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;DM5PR2101MB1128;7:4YtEflVHSaF15zleJkgd8SYDaDEtVkFZ8KWRyP1w4tQMT2ScSr25BaAoBewwI7t5HqggCPRUuvG4LLQuK9pGA61BDwrt3SgZnsEQVBHpnez7S9Zra+OT7bUhnzlG8vxEMiyPJZLuzJ4d/twx26MLGPCKwbJULUTpb0t+X/arGj7a29yilXEUAiuaCwRrWwNEviWCixVMgs6EXM+rXXRad6z3INVPzPzUPcwAGGsWpHoOM1J2VESYZnxvUZm+v8aA;20:nhIl5rdpDgz6rSVWs5WfK9JHRVHkgYCp+yYBRzI2DHOz102hHFtV97U6ZBBC9tNB1qD32qDaH7+wFH4aDk2VC7juSlE4r8AUEBGp2VwUKjoKbiK/INU+Bh/gB4K/P3lH1fQeI/yvsYLxdElVNYgWeWYEUR8BJYpwF2wlAJJ6/VU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: df28b3c7-7c44-44f5-dab8-08d59daf70fd x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1128; x-ms-traffictypediagnostic: DM5PR2101MB1128: 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)(228905959029699); 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:DM5PR2101MB1128;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1128; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(396003)(376002)(366004)(39380400002)(199004)(189003)(66066001)(86362001)(59450400001)(3660700001)(3280700002)(2900100001)(25786009)(36756003)(6506007)(76176011)(2906002)(6486002)(86612001)(99286004)(102836004)(1076002)(7736002)(575784001)(97736004)(2616005)(446003)(486006)(11346002)(476003)(26005)(305945005)(6666003)(6512007)(4326008)(107886003)(478600001)(6436002)(5660300001)(10290500003)(5250100002)(22452003)(316002)(105586002)(186003)(8676002)(110136005)(54906003)(72206003)(53936002)(2501003)(68736007)(14454004)(6116002)(8936002)(3846002)(81156014)(10090500001)(106356001)(81166006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1128;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: Svdc7NLc0fUPTyeYMy0Eelgh8N7hAYIvvVpYH3ryLT8HCXIwSPmFG+tvXWF5M9GZOSCQAfpMrw1TnkcO18izWMc53Dj/NsSJLeLAEAgC3Nf1q9EZ6TKPk2wT7XyS/N5Pz8htxdkFRpTXXo7GahvX6PF/nqZE8ph6ImQFpn92iUsD/n6xG4w6TaLQQO2POi+6tfofw9XTZqnipHyZ1ku5FOkser4uEopto3sWQr35qfscSjFExQoeJDjtK3rba/GCW+RTjTOGDM3Dw1AIPwCt9cNQ05UTWHAHVdkMDmIZlGLsBkhcrGwGGg839nkv1tkjm+Ja8PilXOWolQKHUDl6fCh6F7ablrzOaBX1YvktlPS7l+gU1+wKoDqwWg20jtlCl0BQ7+xjLkLdOM4jXAcBa7W8yHa8WA/D7jiJLlxpBxU= 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: df28b3c7-7c44-44f5-dab8-08d59daf70fd X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:48.0547 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amritha Nambiar [ Upstream commit bbf0bdd41fbf71a008325bdcf0df63ab088bf532 ] Fix recreating the channel VSIs during the reset flow to reconfigure the Tx rings and the queue context associated with the channel VSI. Also update the next_base_queue for the VSI while rebuilding the channel VSIs after a reset. Signed-off-by: Amritha Nambiar Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethe= rnet/intel/i40e/i40e_main.c index af792112a2d3..973bad818e81 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -9077,6 +9077,17 @@ static int i40e_rebuild_channels(struct i40e_vsi *vs= i) vsi->uplink_seid); return ret; } + /* Reconfigure TX queues using QTX_CTL register */ + ret =3D i40e_channel_config_tx_ring(vsi->back, vsi, ch); + if (ret) { + dev_info(&vsi->back->pdev->dev, + "failed to configure TX rings for channel %u\n", + ch->seid); + return ret; + } + /* update 'next_base_queue' */ + vsi->next_base_queue =3D vsi->next_base_queue + + ch->num_queue_pairs; if (ch->max_tx_rate) { u64 credits =3D ch->max_tx_rate; =20 --=20 2.15.1