Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4881717yba; Mon, 13 May 2019 01:07:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6sNsOq2ZDQZtm60npapI/az+9D1Vt22yS8h1Qn9oRossrLLjW7QuE7Qtv+T5E/VJISQ0+ X-Received: by 2002:aa7:9615:: with SMTP id q21mr12462884pfg.253.1557734864130; Mon, 13 May 2019 01:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557734864; cv=none; d=google.com; s=arc-20160816; b=DlHuPYRcuf6GcLVJrP9A9wyd9SB0YhH4EkyiDCVt/DZvFV4WtQB48uet42Ummr2JKz xl04R0TaoNEcQ06YO3FDZWXHxDDAjc41qANsxABOSZrMxPe2TuSqRJuOe3Vrru9pz2Al 9ihXC6gT5G3FqENJPw7fHXBdY9TrBm/oLot+rBzHqqr187FaOGq0D7HtKYtpDsjL8zgH yZ16WHHjDJ2fL5sMieSF20WqFr2OpbSjf12iDF+8xm6/AfsBZAwMd8/U+Ny6Th81gkOp rLl0DwSNl7Ou0Y04mPw++ANDCnqn/TQpP5q5cav3oZHoDm4C3GKQ15dOeeJ1MAS95DUu al1w== 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=drnUgJgkZRjHLtgWF015BcnOgeN8sO4SIhGAjCyDIho=; b=MF81zgDby1ZD0MBYpDuWETBtCgWmo7oX/h7Y64brNnjTt3n4pHBgzTjekTSJgkCDbu perp7BQRHRx/fwpLzZwpJkJNJ5fHaych0Qg9v/cJas3tqIhSVWE8K2L62SoEGW4aIfez FuNahG/raJ2NLrLy1Fj+DA9UM6SGjauTKaEj9salI/H0tR4RG6WmM3qBIuTKNWEXBqez SkuxM0gVHZyjEBIMwVpjLRnrUt4ZVQNDt+t0E14KeU+N9KOomecX5OSi91ueZ4Dyz08+ tNtSGuhbf980XDFCE59oMCGB+HmHJ5l6wFv8Pmo9EFi0ANK28a3JzQzLyJK3NJoypnxl EIIg== 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 d34si17841509pgd.558.2019.05.13.01.07.27; Mon, 13 May 2019 01:07:44 -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 S1727867AbfEMHai (ORCPT + 99 others); Mon, 13 May 2019 03:30:38 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:57399 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbfEMHah (ORCPT ); Mon, 13 May 2019 03:30:37 -0400 X-Originating-IP: 90.88.28.253 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-86-253.w90-88.abo.wanadoo.fr [90.88.28.253]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 94B8F1BF208; Mon, 13 May 2019 07:30:33 +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 v2] net: mvpp2: cls: Add missing NETIF_F_NTUPLE flag Date: Mon, 13 May 2019 09:30:33 +0200 Message-Id: <20190513073033.15015-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. Since the current code doesn't allow disabling the feature, we don't set the flag in dev->hw_features. Fixes: 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload support") Reported-by: Jakub Kicinski Acked-by: Jakub Kicinski Signed-off-by: Maxime Chevallier --- V2: Rebased on latest -net, added Jakub's Ack, gave more details in the commit log about not adding the flag in hw_features. 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 56d43d9b43ef..d38952eb7aa9 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -5058,8 +5058,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