Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3689930yba; Tue, 7 May 2019 05:37:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXwtVGy592HVhobuA599ZU24tASClVYAFACQsnLntA4ovoxFY2FPAf+pGn8lAeqUA+I3H9 X-Received: by 2002:a17:902:d708:: with SMTP id w8mr39827141ply.231.1557232678487; Tue, 07 May 2019 05:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557232678; cv=none; d=google.com; s=arc-20160816; b=MDmHzSd5wvSuXW5FL58iChHAvs0uEKLkrruVvHRO2X29SSWpki7RyMiCU+kM177BuP ah2Tz9bNmueU/UKI4/4VU8ac56dkZUtijBuSjK6KrehhrvSR/GxCYLHkANqi3blchpUG awxzStmR/3LdGqTseU3kz93Vffwk7RT4cJVf9mJXJ6YY0/qsHNKIBHxWac6dmOnqsh7+ gaBQCR0uk+URPaB/exRv1LbonGHtLIAI2miih2RkCv5BfVcoSAmqaxpjL24jbavDJiOI QNJszUmCUgnJE1fvSuJDzBVEluBMJDkYivQloVZ+fHqABrYZcdhxaCkxBGB7tYmqlj1D JPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=n5lv5iFNDlGUpp12lEm28l++VvFU+J7iw8h0Cgqv9mE=; b=l92OuogmgyhTefWUF25qtqGOqVvTjPiBUX/QjbD5TT6SyBUnyXXqS1NegHlhePRyCC zGMxG/gK60IBbQmamZBik11GoMimxz78uu7qbXZmL5XE2ZqTPz0Z+4/ORLpfDv72PQaa C0LeAJZUiAbWKFDl2fQfn+JuR/5kcskymwxtUOloGOcRlwqsciqZ5QrDdxNhb3vP1ccg sFHXXGQqShIdgl59pA/ADKIo2C6wVT0+8EdsvEO77SZbYYtPEVPe/g63UL9WtLKoG/BM 1/EAkhiWpM/SLw1aDoMBIOpL1NaF5rzeBK/tRUE0zU3C0kI0uHO7gcodoTSEPx2GvvIN dpTg== 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 z8si19185851pgh.82.2019.05.07.05.37.41; Tue, 07 May 2019 05:37:58 -0700 (PDT) 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 S1726516AbfEGMgq (ORCPT + 99 others); Tue, 7 May 2019 08:36:46 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:39069 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfEGMgq (ORCPT ); Tue, 7 May 2019 08:36:46 -0400 X-Originating-IP: 90.88.149.145 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-29-145.w90-88.abo.wanadoo.fr [90.88.149.145]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 1287A1BF218; Tue, 7 May 2019 12:36:41 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com, Russell King , linux-arm-kernel@lists.infradead.org, Jakub Kicinski Subject: [PATCH net] net: mvpp2: cls: Add missing NETIF_F_NTUPLE flag Date: Tue, 7 May 2019 14:36:35 +0200 Message-Id: <20190507123635.17782-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the mvpp2 driver supports classification offloading, we must add the NETIF_F_NTUPLE to the features list. Fixes: 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload support") Reported-by: Jakub Kicinski Signed-off-by: Maxime Chevallier --- Hello David, This patch applies on top of a commit 90b509b39ac9, which is in net-next but hasn't made it to -net yet. Thanks, Maxime drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index 25fbed2b8d94..1f164c893936 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -5040,8 +5040,10 @@ static int mvpp2_port_probe(struct platform_device *pdev, dev->hw_features |= features | NETIF_F_RXCSUM | NETIF_F_GRO | NETIF_F_HW_VLAN_CTAG_FILTER; - if (mvpp22_rss_is_supported()) + if (mvpp22_rss_is_supported()) { dev->hw_features |= NETIF_F_RXHASH; + dev->features |= NETIF_F_NTUPLE; + } if (port->pool_long->id == MVPP2_BM_JUMBO && port->id != 0) { dev->features &= ~(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM); -- 2.20.1