Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4216162pxf; Tue, 16 Mar 2021 08:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVs/FNwR8p4JKx0/DmzgL0pVNyEnpn/SpTNcw1PnrV5WNi0trs6Hnr/zE2xrTLrz5fLAa8 X-Received: by 2002:a05:6402:26c3:: with SMTP id x3mr37861911edd.126.1615907662638; Tue, 16 Mar 2021 08:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615907662; cv=none; d=google.com; s=arc-20160816; b=L9OJ32k4TPDnPbS18GXdp0QvJLCQx6UXvfJuSeaIsaEHgcNvs+h8cfgyksSfz+wt5J L+VFkLMRqHk/R1nkstpZ9bPoK40sYop5QkVEDknxPhjsd0vQwcTqAlopjDltIPA/Pjfc dVmmlE4OccDWQtMmpNd1xSWDxA0a0LlaaQ+5TjZCZMvsbAWTaEpBQpNybjeVpWVm42SY SzMaJDSCqOaBR3tyAa4rptVGv5/ViFOxzQKeUW1onrPf7zu1TrjhwfOl+V5WXaetbser 5aF/3sHp1t3VlC1WpLGDh+dC33LeyJ6lDIlDE0H3L+XNzSIJ+tlSrVKvU4H7qiG8JdUn Fz8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=S1PYI5MPS1aNRBXE1di+mnmLXN6wtxMtTIz2wK/wu/U=; b=HJPDESvmaSuKOdVQ3+j7d6+dpqvee9nL0JY5JlrxCNmQqgTKtTPquO/RDL9bDpIAsC 5ghCd60NURkT3NMNgTXWWPvtj0MGakWcXnBNlH6/BgpwLVRlY44EmtD791dFge4wgCjn D8/r4omrzl/XkRgYWE9MQqB20s2AR8o1ygou51BjdDQIptZhxGHt6xMnxMTca9Oza3TQ hVEZBt8Kpzb/9R3TOTf9CWdiE1wKshD7JXaTix9JnlLjcdDvUXo4L8mkSRiP8mnegihr TAPM+KHJ8HyGLJ873J7WPCstqV8jhs6babydQin7u1Etah3F+KhDzGQy9051N7QSmP3j 1THA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=DRGEfVmV; 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=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si14027736ejf.231.2021.03.16.08.13.59; Tue, 16 Mar 2021 08:14:22 -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=@marvell.com header.s=pfpt0220 header.b=DRGEfVmV; 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=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236275AbhCPJ2T (ORCPT + 99 others); Tue, 16 Mar 2021 05:28:19 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:41472 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236064AbhCPJ1q (ORCPT ); Tue, 16 Mar 2021 05:27:46 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12G9QR2s020151; Tue, 16 Mar 2021 02:27:45 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=S1PYI5MPS1aNRBXE1di+mnmLXN6wtxMtTIz2wK/wu/U=; b=DRGEfVmVde6wq4NwxVJvBQgfHe/7z76KOhlYUTredoz+7ROFTzUkJTCIUsNDiY8thNkM xo4s3AanFMIB9zGhXOL/7iZ2B3hfKhVOWxfnZBAP/zAV9T/7Sa7WsusIjW9TKxp5vvo1 uFDZP4kVH3rIx9U1D61y18Hni/uhuC4HPWAgPUvoAITJRxDxAm0meuOFdngNyAEadgVK HTT8zeVFKWRzvxLg284k3RtKHS7OMZEue9VfVpWZfplaxeMfHDueFjNd/Jau0EsBs5z5 UIJcE+HiT1BgWXjXFte4YS+Hax/ZhGzmamtKZznnwbfOoGSdTPcgyPwm6IYKHjQmsvyX EA== Received: from dc6wp-exch01.marvell.com ([4.21.29.232]) by mx0a-0016f401.pphosted.com with ESMTP id 378umtfrc1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 16 Mar 2021 02:27:45 -0700 Received: from DC6WP-EXCH01.marvell.com (10.76.176.21) by DC6WP-EXCH01.marvell.com (10.76.176.21) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 05:27:41 -0400 Received: from maili.marvell.com (10.76.176.51) by DC6WP-EXCH01.marvell.com (10.76.176.21) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Mar 2021 05:27:41 -0400 Received: from hyd1soter2.marvell.com (unknown [10.29.37.45]) by maili.marvell.com (Postfix) with ESMTP id 959A93F7040; Tue, 16 Mar 2021 02:27:38 -0700 (PDT) From: Hariprasad Kelam To: , CC: , , , , , , , Subject: [net PATCH 7/9] octeontx2-pf: Clear RSS enable flag on interace down Date: Tue, 16 Mar 2021 14:57:11 +0530 Message-ID: <1615886833-71688-8-git-send-email-hkelam@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615886833-71688-1-git-send-email-hkelam@marvell.com> References: <1615886833-71688-1-git-send-email-hkelam@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-16_03:2021-03-15,2021-03-16 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geetha sowjanya 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: 85069e95e("octeontx2-pf: Receive side scaling support") Signed-off-by: Geetha sowjanya Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Kovvuri Goutham --- 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 53ab181..2fd3d23 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c @@ -1672,6 +1672,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); @@ -1684,6 +1685,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.7.4