Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3490910pxf; Mon, 29 Mar 2021 03:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAk6KYT6QcYg4b0y/OCB4ynQp42phdOBq4FPF6WiJUDLa46/0rO2CmXGOAcy3mKbeLeo5P X-Received: by 2002:a05:6402:1103:: with SMTP id u3mr27510241edv.205.1617015097808; Mon, 29 Mar 2021 03:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015097; cv=none; d=google.com; s=arc-20160816; b=g4K3oJ5S+uE6V4kSlgCjuzWoNLkGHSCEgQUe7ylu9BPDqehXnSy2QRPDlDCjH/+3Uf 42mnnOPxcv1FgkEl69PWyCyX8ifP/0IynTx72HFodDZJPWPUe1ciOdNkdpNoaWoA0zSC pSf62At2rCN3j0qLh0xVoxk2FoGTjBdKN5XxM4vKq+e3yBDGiX2YDt/6ZWk4dMZ5GRjm ztpi3TlCb48r2mdhJzAUTDZXkOQFkL1yua458qfN2PbK5j6vEDDxot8teykN/D9ItxXm ioPg6uCLf8dnQmu4ajKq9UcdikVtoYWNxRCeA/PSgNLR0YPfUxPsQRnVu9fOcvsU/0Gf sg4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vQBlDdapuT462WdwZ8hhloTG8Pv0Wt/GF6kvAMCIvYw=; b=Sh2bbLU65zI3ocmLJ2/8Nc+m+3hIOe+qf5N1hGqYhuObVza0jK2tStdlLVGekmcPYb 0woMpftGxd+AlwGzNmSwD0GJxdIfzrWC1F5ji4HutTlj9StAGt+NXN2kvV4Fql2HZ8ZX emdMahBbw0p/sy3L5wFubwXmyGFuGrofK7ttZhtHOs7UU/KPARiwq+J3ot6yJiIq/B8h p/ylmqRxq5lqGg07Ylq8PH+g8QT3DGSdcOTQmriB2r1CKMH9Iadjua6Uf3PSUcS/hcnn 8DQbGyTJUYSGXgIeTgYra2wSmYVe1QgHxoj1LJuaWQQGVS4nGNoiWlutGXsK+XfomlOH Dt+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KzQwuEwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si12826398edt.289.2021.03.29.03.51.15; Mon, 29 Mar 2021 03:51:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KzQwuEwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234485AbhC2Ijg (ORCPT + 99 others); Mon, 29 Mar 2021 04:39:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbhC2IX1 (ORCPT ); Mon, 29 Mar 2021 04:23:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A0E2619BB; Mon, 29 Mar 2021 08:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006197; bh=mqr5PF43DWPLKILTuuTBEO1NrWrz3vQ6zdgv4HfU4Ek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KzQwuEwaFGoKYNaPRo03Xw7TvlZR1/XRgUKRcyMFAecPFIclgRfakYvcSFWzNtlUf h0AsJbZ4rM4LV5LFNaie21cfyJDMnq5KRyD8YHtkI5f8xJbeyfugF/UabQBZfmDrCM dxqNxaYEuPz4NwAkTF2ctykCecy8TmbcglcKGkoE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geetha sowjanya , Hariprasad Kelam , Sunil Kovvuri Goutham , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 154/221] octeontx2-pf: Clear RSS enable flag on interace down Date: Mon, 29 Mar 2021 09:58:05 +0200 Message-Id: <20210329075634.300950792@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geetha sowjanya [ Upstream commit f12098ce9b43e1a6fcaa524acbd90f9118a74c0a ] RSS configuration can not be get/set when interface is in down state as they required mbox communication. RSS enable flag status is used for set/get configuration. Current code do not clear the RSS enable flag on interface down which lead to mbox error while trying to set/get RSS configuration. Fixes: 85069e95e531 ("octeontx2-pf: Receive side scaling support") Signed-off-by: Geetha sowjanya Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c index 66f1a212f1f4..9fef9be015e5 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c @@ -1616,6 +1616,7 @@ int otx2_stop(struct net_device *netdev) struct otx2_nic *pf = netdev_priv(netdev); struct otx2_cq_poll *cq_poll = NULL; struct otx2_qset *qset = &pf->qset; + struct otx2_rss_info *rss; int qidx, vec, wrk; netif_carrier_off(netdev); @@ -1628,6 +1629,10 @@ int otx2_stop(struct net_device *netdev) /* First stop packet Rx/Tx */ otx2_rxtx_enable(pf, false); + /* Clear RSS enable flag */ + rss = &pf->hw.rss_info; + rss->enable = false; + /* Cleanup Queue IRQ */ vec = pci_irq_vector(pf->pdev, pf->hw.nix_msixoff + NIX_LF_QINT_VEC_START); -- 2.30.1