From patchwork Tue Feb 16 10:59:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 8324001 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 083F69F372 for ; Tue, 16 Feb 2016 10:59:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2ED8C20268 for ; Tue, 16 Feb 2016 10:59:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BDD52026D for ; Tue, 16 Feb 2016 10:59:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVdKI-0005aN-2J; Tue, 16 Feb 2016 10:57:50 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVdJe-00058i-Vl for linux-arm-kernel@lists.infradead.org; Tue, 16 Feb 2016 10:57:12 +0000 Received: by mail-pa0-x230.google.com with SMTP id ho8so102907511pac.2 for ; Tue, 16 Feb 2016 02:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cM+Ef9TKdf2mxPcn6Hxcv7EJfw8JyQnBE6eLkyhbUR0=; b=fLVWq0VoU+EHYkf/uxdTqPyDJ2hEQrS31YyCwHTXg6IftwoWdOO9t+HhAxLZVin3Ds esDLavu11P9+WAWyidxY6oxIHLFrYEJwDG5ns2RTvHDSxcjVL0lk4kZfMbc8M9prDauf qQJl44RSAlGFxSi51IiO8N1MuE2tMoXBrZ0FtKY4ssCODZr4I7T0nvFzUOXQVbzBUxs4 PeaxjQtP1IjDFzL9sALSl6aPlEv56OigLRxM1UkIYkyIgbCdNxTHjy8SPY+8x1Vgaq+5 SXq41qK9nfg6cjFhMcFtl8TxkS1wgvEQFkBn5D/8AQ3V5kb4kEUheOdRIhYeFNRXoxWH mMnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cM+Ef9TKdf2mxPcn6Hxcv7EJfw8JyQnBE6eLkyhbUR0=; b=FoxC1cilAj4dp48lf2pOwD3j1kfTsdbL8y6aYCSRz24Jb0mYuyNM4nyOrUpWdWkruE wrZjpsQ071s/ol6g0rBDltwaL004VTm4Jvg6qfESdxnyaYQJCjIh2R1Aiqo7TyK2RAhM LjNufaNPePPb8TH1AMrhnOnhmH39BTbsGUXhCVgz9FCW3Gc/mSSFdi6+4/iD4xOnnXJV Ne1vRIncBNcOzqL/H8yHaW7koCMcCTAo52ZA7EophTroWQkUJ84uwRLT95bAo4X9v52S CBVLZ/mccJYz/XBOGtOGHCQF9St3l/RMYRola/Z22GPG3pzanPbBSRT4Oq6S5fgX654n NGDw== X-Gm-Message-State: AG10YOR9WtCA8I0DhyIHpeOsqpuiLtIXQ/nNa71cPHQRPPq4FIF32PRAk5yX6xeZy2mZQw== X-Received: by 10.66.139.137 with SMTP id qy9mr30145562pab.57.1455620210199; Tue, 16 Feb 2016 02:56:50 -0800 (PST) Received: from localhost.localdomain ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id e1sm44985971pas.1.2016.02.16.02.56.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 02:56:49 -0800 (PST) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH 2/3] net: thunderx: Fix for HW TSO not enabled for secondary qsets Date: Tue, 16 Feb 2016 16:29:50 +0530 Message-Id: <1455620391-31619-3-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1455620391-31619-1-git-send-email-sunil.kovvuri@gmail.com> References: <1455620391-31619-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160216_025711_302044_E0FE3392 X-CRM114-Status: GOOD ( 12.04 ) X-Spam-Score: -1.4 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sgoutham@cavium.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robert.richter@caviumnetworks.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sunil Goutham For secondary Qsets 'hw_tso' is not getting set as probe() returns much earlier. Fixed it by moving silicon revision check. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index f8012c4..84c5a33 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -1537,6 +1537,9 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) nicvf_send_vf_struct(nic); + if (!pass1_silicon(nic->pdev)) + nic->hw_tso = true; + /* Check if this VF is in QS only mode */ if (nic->sqs_mode) return 0; @@ -1556,9 +1559,6 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) netdev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO; - if (!pass1_silicon(nic->pdev)) - nic->hw_tso = true; - netdev->netdev_ops = &nicvf_netdev_ops; netdev->watchdog_timeo = NICVF_TX_TIMEOUT;