Received: by 10.223.176.5 with SMTP id f5csp3430463wra; Mon, 29 Jan 2018 13:04:31 -0800 (PST) X-Google-Smtp-Source: AH8x2240k0dW9m1rBiQcHd6ATro8ozWADc7Lwtfc2mVKP1Li7EbvMTkOcN1L7NMRbBHxrcI2l/wC X-Received: by 10.101.97.67 with SMTP id o3mr22009202pgv.256.1517259871499; Mon, 29 Jan 2018 13:04:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517259871; cv=none; d=google.com; s=arc-20160816; b=hoXdLvZj01jNqxtW1+Q4zf9IMsyCN7zTHxmJYA6gtjjgyuLCQNWsei+xxtKqgzgJ1t jPPvnPaHukYpauDiqJSFRYaYZtEd2RWHyJZHqC65eUaU41mxeTmEVMXE8qiFQsCYpOFE P1ZXmQSaSQSWq07puW6ErDfXvqRmCe+nhhSzSN+Cd22C7XucycRYW5YNGBYzC8up2rQs CGUKaWp9eL0rADldQ2u/wd4p1ZiSoxFDUtpUS58twoGMHsyw7bqN5wlVtq+VhSNcQI9g AjZpGGTc6YCuEnUi0fKuUfdXlA7879kRo5ldd6qbIwgrfbJVcWZBGN8r5blJ1ZiUWyeh RTXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=riswQZ3X/LRXVTOAI64R7+euoGCVU0XjHB6f8DgKS68=; b=DIYWO3I1HPYOmlZ4YgjowzbQ1OGqDwy0waWuBjId3yBk3K91svwBnOkSJbGVYwmkqf nC3osD/+kqBzfoyW/DqfsKOHoWnmawzRTzGii/BvRfTfcxYHFzBCwBY25VeN0zE8jMPR zTq4RDuYmInR1xkHlVqI3WYI+vYUlz/O+Qv2r4NHVmvJOCCioB4hrp7iwVH3UoGqKoLl MXDFMLnYu5W58tk14R3EfMHMeniC7TKArRK10SxSXmKnIFyaMN6J5+XZnqNHF3l32v/d NQmF/Y+R+wUahbzsFCCLo3MUN+VluFJqlsXVUQJQErAMF7jpGaHL4mcLIqbkW6sI71Nl 8iBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 99-v6si4616175plf.440.2018.01.29.13.04.17; Mon, 29 Jan 2018 13:04:31 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752978AbeA2UH6 (ORCPT + 99 others); Mon, 29 Jan 2018 15:07:58 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51608 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbeA2UH4 (ORCPT ); Mon, 29 Jan 2018 15:07:56 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1A3E8300E; Mon, 29 Jan 2018 13:09:26 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sathya Perla , Ajit Khaparde , Sriharsha Basavapatna , Somnath Kotur , Ivan Vecera , "David S. Miller" Subject: [PATCH 4.14 43/71] be2net: restore properly promisc mode after queues reconfiguration Date: Mon, 29 Jan 2018 13:57:11 +0100 Message-Id: <20180129123830.118442800@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123827.271171825@linuxfoundation.org> References: <20180129123827.271171825@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ivan Vecera [ Upstream commit 52acf06451930eb4cefabd5ecea56e2d46c32f76 ] The commit 622190669403 ("be2net: Request RSS capability of Rx interface depending on number of Rx rings") modified be_update_queues() so the IFACE (HW representation of the netdevice) is destroyed and then re-created. This causes a regression because potential promiscuous mode is not restored properly during be_open() because the driver thinks that the HW has promiscuous mode already enabled. Note that Lancer is not affected by this bug because RX-filter flags are disabled during be_close() for this chipset. Cc: Sathya Perla Cc: Ajit Khaparde Cc: Sriharsha Basavapatna Cc: Somnath Kotur Fixes: 622190669403 ("be2net: Request RSS capability of Rx interface depending on number of Rx rings") Signed-off-by: Ivan Vecera Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/emulex/benet/be_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -4634,6 +4634,15 @@ int be_update_queues(struct be_adapter * be_schedule_worker(adapter); + /* + * The IF was destroyed and re-created. We need to clear + * all promiscuous flags valid for the destroyed IF. + * Without this promisc mode is not restored during + * be_open() because the driver thinks that it is + * already enabled in HW. + */ + adapter->if_flags &= ~BE_IF_FLAGS_ALL_PROMISCUOUS; + if (netif_running(netdev)) status = be_open(netdev);