Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4005478yba; Tue, 7 May 2019 10:30:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvSYuU4R7SruOWKlWmSvRG7YGODbYy+8+MvFSzlHmeUvHuZYYAYJj/4ErHoeoLZd6gAbEB X-Received: by 2002:a63:161d:: with SMTP id w29mr41421993pgl.395.1557250242793; Tue, 07 May 2019 10:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557250242; cv=none; d=google.com; s=arc-20160816; b=WMqm5ee4vdWuRhqt+6V0R6TmePUDOk3yOl8iDfIx4Fk94NdCi/nFBYbrgHvE0nzVq8 c9K2UwzJxVAvcAJbvbP2+4sW1/JqdNj435llkXdavIhaalPEFJu0ovBCPUbRUYg6msa4 eNrd//sSY0Zqp78lDuRbBqF3xck6PftZtGVlRIzWbUa+jNRZlGT4CruVC1aRFkmoIPqd uvBAEk2OxOsUYzv7jxk+cc+/dw0O1Z92fAzsFVSMjhLC6TdwqeCKJHGxBrdyHOLHyJyx 3cQWmmnQtiz+Nm5bWWbeGWKAJNUB7GamD5JT+Aya2VZsCgKWZuVNrU7sjgmS1LJo6/n/ jDgg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=EXaJJYnOhCMm1Ies7w0+ULwlGJK0FIFIMnFExUlBqmk=; b=UaMtduIPncuuRzxROM98hgMd+sDBEXpnwRv68iFyzWprJ1bQgyeuMYEhL+1EOybVc9 qinc/eJAeIbkBPXv31dIe5J9alHwpkE56+M4109hUGDoucbtNYduWYWLxDf1IJLoBPhX mdupFtbhI8KZayTXln2yvPl22+hDp3vye0p3u2sunHEj9yF9kwNLT8GLLCnBxA9VtUhU VzY4lWVMXTu/3GQ9q7GcvPmNJcfpoAxrXVosnDaUhWLc6t6QlpFz6oAw29hh0x8ZGVzs 5iproysbGuJKrleJ/UW97HxbenfLoK/Nbo+Lgx3pkHOOMKZY83PrY/F7hlM2XyLZkbwl fycg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="o/r9IVM5"; 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 co15si21595830plb.330.2019.05.07.10.30.26; Tue, 07 May 2019 10:30:42 -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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="o/r9IVM5"; 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 S1727474AbfEGR2O (ORCPT + 99 others); Tue, 7 May 2019 13:28:14 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37293 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbfEGR2N (ORCPT ); Tue, 7 May 2019 13:28:13 -0400 Received: by mail-qt1-f194.google.com with SMTP id o7so8022882qtp.4 for ; Tue, 07 May 2019 10:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=EXaJJYnOhCMm1Ies7w0+ULwlGJK0FIFIMnFExUlBqmk=; b=o/r9IVM5MhwMiJDJ9GVBWFCxkF0ebVK49NOcXyK3oMxdQdwXCejyZcGgqxxZbluDRm TkLtTH/eX9lZ8Hmmjn3AjqvEtJOSVkbfEWlTF8X+cx3Ci0C6l/baZ/3IDmdJYLkq9Gxl qNfjNfWyviSVQuJ5NI/NVbGyZcbmMWcmfOPDmg1bZcSh/1hDkQy+VnbtYiIy9KVel14o Bh1AvI5Q4EXXWRlncz5nllTS/shUOyYW9YzFHkr3z+BRlktQFpIiru9Klc6AWvRe0uSa 0LWCXqSSHhiYrQQYtkK2F7v0nNk19iYZYDgbfam9iurl9vHv5dReP0Nx7sQLTqdLcpQS XQEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=EXaJJYnOhCMm1Ies7w0+ULwlGJK0FIFIMnFExUlBqmk=; b=KJiLIWWonpQFikWAtgrgOPMzNmnZQ5rB2LOwjmgiMZ40Of0jT4GUJ378+dviUfnAeZ Kp+C9IY7lpJPAFUOvsIUFOSMuBEEwfS6H/xj1j63zYo+O909yideIjgLwqN51Eg/4MOb cHdBxYaK8CPQSGTPaSmsExdiCzFwb4ngcWdAQLd5EQhoyGMYkPnAHyDAAeVOWrmNofwT 22FuRkGkTxKhGWFOB6T23AbSoHdsVfC4+QYsdT1+XYaDlM/d3IkH88lZ2TcJEaveJcBC EDrK2r2StMqrHC9OlthmlMivwfGsDE3JkeTX/VI77fRkv8dPKoT8Z8nwswc5TVR5MHrU tz6w== X-Gm-Message-State: APjAAAVmGwzwavEYoGsA6UCu+biKww7kC5/DztI1CqIf8bWdgFztrBUP 0x7DzDJRKkNR8V7q3lmsg3PTYg== X-Received: by 2002:ac8:2565:: with SMTP id 34mr28459068qtn.37.1557250092551; Tue, 07 May 2019 10:28:12 -0700 (PDT) Received: from cakuba.hsd1.ca.comcast.net ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id p6sm7274766qkc.13.2019.05.07.10.28.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 07 May 2019 10:28:12 -0700 (PDT) Date: Tue, 7 May 2019 10:28:03 -0700 From: Jakub Kicinski To: Maxime Chevallier Cc: davem@davemloft.net, 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 Subject: Re: [PATCH net] net: mvpp2: cls: Add missing NETIF_F_NTUPLE flag Message-ID: <20190507102803.09fcb56c@cakuba.hsd1.ca.comcast.net> In-Reply-To: <20190507123635.17782-1-maxime.chevallier@bootlin.com> References: <20190507123635.17782-1-maxime.chevallier@bootlin.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 May 2019 14:36:35 +0200, Maxime Chevallier wrote: > 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; Hm, why not in hw_features? > + } > > if (port->pool_long->id == MVPP2_BM_JUMBO && port->id != 0) { > dev->features &= ~(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM);