From patchwork Tue Mar 17 03:22:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Nelson X-Patchwork-Id: 222421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94065C2BB1D for ; Tue, 17 Mar 2020 03:22:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C2BA20575 for ; Tue, 17 Mar 2020 03:22:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pensando.io header.i=@pensando.io header.b="EKkax2Xm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbgCQDW2 (ORCPT ); Mon, 16 Mar 2020 23:22:28 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39434 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbgCQDW0 (ORCPT ); Mon, 16 Mar 2020 23:22:26 -0400 Received: by mail-pf1-f195.google.com with SMTP id d25so3122008pfn.6 for ; Mon, 16 Mar 2020 20:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aOHArtyyCSR0pXyrFJ4sZvmpPZLW125U9f5d+4rorm8=; b=EKkax2XmuRPJ9adHOJHkAW4BXlATkfvI4j4mkRxOCi/gcvxIwzc6GNPWgo5PekmJXA yWouwlv96YO8RZcroQh1tC9/OgKzfuJwrISz62kuMrlfcV09aAUWYIqI6evlHAJlo2y7 EAq8ERrdgXukewT1xkUIhfDKli+UFbn9DzfpFBkMPWidSEZAymbNR8tdtgxX9cSOHrpD +IYgl7LJbXZKS/q1O1I2yWAnjMwUnIZQ7o/EcH31fCx971HVs7pzR5aztWNisg84iArA c5yl3TEHSWs04DwXFTYl8ivMxG6ixAXM3IcPolmb/mXsLEmDqMPPdfqZNEryRleKMMZi jXnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aOHArtyyCSR0pXyrFJ4sZvmpPZLW125U9f5d+4rorm8=; b=mIlKFIOo9tJmqSzc0+b9KEWLbVA0eNvJFxXqaX67cqk/afd8X6k7RIwCWbRiVeHvu8 CtY8RPruvMBMcMEuSLQ3dROkgt8GA9MmcwpNJ2/sMJDqagewvMtDaJWqDfjK6PXDXq5m O4Jqyb/+qouSvv/m+s6wCGUOHpItgaDWCrCEyHUjZDtPy9+IDes/d97ts7k1jYAjdwBj G2hsv4TyqMsadGIDXb4u3nNwQQk6Bii3ZErJ6KZOxebCj29F8z4yj/8nGEBxYINi/MhL BWRz2SPnogfnjWTC8ILAHEngdFRpBUzRR/QMLNyNFQnmX9v+84BDSE7DbjRGKk/RvCy7 8oCA== X-Gm-Message-State: ANhLgQ3RiNMsL1hsqN5Gsc3CjosskC+zc6uXvg+iHJ4Atrc9kih2rmle ksamk0O7ykEWuBICOsto+WZcexFFPes= X-Google-Smtp-Source: ADFU+vuVz6TkyGYc+ljBTywpn07d3f/uYdFFhNDK8muxMY1WXTdiXQmUeBt9aYwBreSWbcgdfCNO4Q== X-Received: by 2002:a63:3712:: with SMTP id e18mr2705835pga.401.1584415345333; Mon, 16 Mar 2020 20:22:25 -0700 (PDT) Received: from driver-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id f8sm1185639pfq.178.2020.03.16.20.22.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 20:22:24 -0700 (PDT) From: Shannon Nelson To: netdev@vger.kernel.org, davem@davemloft.net Cc: Shannon Nelson Subject: [PATCH v3 net-next 2/5] ionic: deinit rss only if selected Date: Mon, 16 Mar 2020 20:22:07 -0700 Message-Id: <20200317032210.7996-3-snelson@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200317032210.7996-1-snelson@pensando.io> References: <20200317032210.7996-1-snelson@pensando.io> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Don't bother de-initing RSS if it wasn't selected. Fixes: aa3198819bea ("ionic: Add RSS support") Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c index b903016193df..19fd7cc36f28 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c @@ -2066,7 +2066,8 @@ static void ionic_lif_deinit(struct ionic_lif *lif) clear_bit(IONIC_LIF_F_INITED, lif->state); ionic_rx_filters_deinit(lif); - ionic_lif_rss_deinit(lif); + if (lif->netdev->features & NETIF_F_RXHASH) + ionic_lif_rss_deinit(lif); napi_disable(&lif->adminqcq->napi); ionic_lif_qcq_deinit(lif, lif->notifyqcq); From patchwork Tue Mar 17 03:22:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Nelson X-Patchwork-Id: 222419 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA0A7C18E5B for ; Tue, 17 Mar 2020 03:22:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8A2520575 for ; Tue, 17 Mar 2020 03:22:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pensando.io header.i=@pensando.io header.b="pTUMrTEs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbgCQDWg (ORCPT ); Mon, 16 Mar 2020 23:22:36 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38382 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbgCQDW1 (ORCPT ); Mon, 16 Mar 2020 23:22:27 -0400 Received: by mail-pf1-f194.google.com with SMTP id z5so11136245pfn.5 for ; Mon, 16 Mar 2020 20:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Kh1lVmiW2UcsTpytBjVKvk3IZRJxfjUMW30Es8ZGulU=; b=pTUMrTEsASOXGR0zqkcKFbxN1Emp2rJVxmH70EKBFxfH/PqGCkLSITzJG7g3TaPWJ0 4+GLK1CeX99xt18vKGbt3RbcjwCEKlnOUs3z5eXOqFDTxjdgtvw2SdrkCtxlT8ORpoaL uyXvP+QpUFwDEnQnnjoFUNLzFLPMHlYifJlAH8kH2XmTdNyaEFD3hzSWSOefi1KgO++7 WGhkLM5NJJPWi9CHefZL82FpQ0dAGqs1l7AISDUWmlEqyMN3DOnI2C3YHE6tbr8ev6zz dp0a8meQ2hswYxlHtEObOHH0liYZ8fipypRy3BcF8di5AmtwIISE3J+RBnStDuIrndV2 MwFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Kh1lVmiW2UcsTpytBjVKvk3IZRJxfjUMW30Es8ZGulU=; b=Da4iDE+77ghwpnxo6I2jJcVXDo4Fi/klCgGtb3jkEd91NlyBMbaGgUpveODzN5/f2p IQ5QbxpKioUKrcwnnfQwHOKeMXJ3SlHG5HTKVWbA++C3wfhIZBV++HyzawF533TWoYAa o4g+7ltd9vPE+eBAaoE+x6vTLNe4yLlZ0PYU8lQ3+MqvBq+syKc/9wKTOZbJdxBi2yiG 1K5rpdTP5YF+wGWdNNM8muxGRRqgaAuRFAKb+sOsGjLGxHk7gwUr8E1thbUqUSwFdhgJ UkajL7mQS5IheX5J5R/i8/krPqmaRUkqjEj1GymymJl0SdBJYPOXkGfmI7Mqu3CFz+ek DqGg== X-Gm-Message-State: ANhLgQ04zjWyInOqypvTprvoEy3X1XVngwPtcnUUfec/YRCGpmbCahUS WD6jpvRcvwLc56War9BPhOrvnuz4xKk= X-Google-Smtp-Source: ADFU+vuiSyMcwZJZjVJIvTXLBUz+GNO3ZW1GWwvl4GErh9fmWJORRn9I1gZ95t4BsD9lm4bbmKzGQg== X-Received: by 2002:a63:5506:: with SMTP id j6mr3006325pgb.284.1584415346143; Mon, 16 Mar 2020 20:22:26 -0700 (PDT) Received: from driver-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id f8sm1185639pfq.178.2020.03.16.20.22.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 20:22:25 -0700 (PDT) From: Shannon Nelson To: netdev@vger.kernel.org, davem@davemloft.net Cc: Shannon Nelson Subject: [PATCH v3 net-next 3/5] ionic: remove adminq napi instance Date: Mon, 16 Mar 2020 20:22:08 -0700 Message-Id: <20200317032210.7996-4-snelson@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200317032210.7996-1-snelson@pensando.io> References: <20200317032210.7996-1-snelson@pensando.io> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Remove the adminq's napi struct when tearing down the adminq. Fixes: 1d062b7b6f64 ("ionic: Add basic adminq support") Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c index 19fd7cc36f28..12e3823b0bc1 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c @@ -2070,6 +2070,7 @@ static void ionic_lif_deinit(struct ionic_lif *lif) ionic_lif_rss_deinit(lif); napi_disable(&lif->adminqcq->napi); + netif_napi_del(&lif->adminqcq->napi); ionic_lif_qcq_deinit(lif, lif->notifyqcq); ionic_lif_qcq_deinit(lif, lif->adminqcq); From patchwork Tue Mar 17 03:22:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Nelson X-Patchwork-Id: 222420 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC9B5C10F29 for ; Tue, 17 Mar 2020 03:22:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C40B20575 for ; Tue, 17 Mar 2020 03:22:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pensando.io header.i=@pensando.io header.b="hv4Vtc2K" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbgCQDWb (ORCPT ); Mon, 16 Mar 2020 23:22:31 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46939 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgCQDW3 (ORCPT ); Mon, 16 Mar 2020 23:22:29 -0400 Received: by mail-pf1-f193.google.com with SMTP id c19so11118593pfo.13 for ; Mon, 16 Mar 2020 20:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Jcs/0s3CZSPtzbiw1HbYF9/yaS+V0LYheoQxKQVUgmI=; b=hv4Vtc2KQyyE5KmPpXzLpj1wRip/OF/MRj/c/YN62e7VowmHFmobYjvFTfOin0rshf om2xQR86rG53nf/urEGUUgDyAnU0teTWhP2P00KFqpSI/UI0k4EGuR6JdcWjGGTLnIlD TTKC/AT9gH5Qb017GxUjjGnm92tPplmUe84zg2jabzKCAHdmeKm383lzsCdFyDZC6knZ HPCyxABnxsf1OwDIg8WPeMvfUNlpeg0I0f34DWIKqIs93LWXcHApfgqT8c35O8DO8tAn pp6N0vPblubO+FF2QejlYxnOsoj9feAHUx7QzmMmoDP+BfwR24NZs3mA1j/PDe4r6HdG qu0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jcs/0s3CZSPtzbiw1HbYF9/yaS+V0LYheoQxKQVUgmI=; b=RjFwECKdHzl52ufIHo5NPV+XJrgffcY+5k08pXIU8ZtZix0K4uno6jN8nLQEDA5jhS NloTrAICtR2WAxXj4WIWpiQSLsPrz3/owQqaD8XthdDB/JeCEV6cz5sV3jpYVzL1IeSv QbEbzY/lnbz2AWX/NqF/ZC72hin97ITEBTTgbeihYf+b0kqyuiK19qpP0kdoWmQ2IypI 338SopHMEIWhyoE63J8NYLxHWo+O+m18dbxs7F+3xihIevQSe4ZLXBiRDwMHBMbD51X+ T00KRaE6YSI4IAfxcxRCgCiBUQc0+kj4QH4qM1I2Jw2Vg9cwj+xNADS7fL1UuDe5JfAy VJvQ== X-Gm-Message-State: ANhLgQ1mPYCl9KlYfMQ53+QTz9gSzp01xROhxuNwNDsinFx4w2jsFs/E xEctQUPbkZoefXXK/Q8lsxgkbu8inqA= X-Google-Smtp-Source: ADFU+vu3S3cfEDSrsZnLTc8o+IaASNFuwnLO+3V2YhZrH1OMx01gbVIHNUZ6bEia8HwK7HiUnJ5czw== X-Received: by 2002:a63:a35a:: with SMTP id v26mr3142113pgn.40.1584415347693; Mon, 16 Mar 2020 20:22:27 -0700 (PDT) Received: from driver-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id f8sm1185639pfq.178.2020.03.16.20.22.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 20:22:27 -0700 (PDT) From: Shannon Nelson To: netdev@vger.kernel.org, davem@davemloft.net Cc: Shannon Nelson Subject: [PATCH v3 net-next 5/5] ionic: add decode for IONIC_RC_ENOSUPP Date: Mon, 16 Mar 2020 20:22:10 -0700 Message-Id: <20200317032210.7996-6-snelson@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200317032210.7996-1-snelson@pensando.io> References: <20200317032210.7996-1-snelson@pensando.io> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add decoding for a new firmware error code. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/ionic_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_main.c b/drivers/net/ethernet/pensando/ionic/ionic_main.c index e4a76e66f542..c5e3d7639f7e 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_main.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_main.c @@ -58,6 +58,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code) return "IONIC_RC_BAD_ADDR"; case IONIC_RC_DEV_CMD: return "IONIC_RC_DEV_CMD"; + case IONIC_RC_ENOSUPP: + return "IONIC_RC_ENOSUPP"; case IONIC_RC_ERROR: return "IONIC_RC_ERROR"; case IONIC_RC_ERDMA: @@ -76,6 +78,7 @@ static int ionic_error_to_errno(enum ionic_status_code code) case IONIC_RC_EQTYPE: case IONIC_RC_EQID: case IONIC_RC_EINVAL: + case IONIC_RC_ENOSUPP: return -EINVAL; case IONIC_RC_EPERM: return -EPERM;