Received: by 10.223.185.116 with SMTP id b49csp154271wrg; Fri, 2 Mar 2018 15:44:40 -0800 (PST) X-Google-Smtp-Source: AG47ELtgRjYO9B4uld+xEQC9dIv0EWt7hWYJnTnadzsXHClAdqOH7kmz0UWnQe3gH2k643C9vGHJ X-Received: by 2002:a17:902:7c16:: with SMTP id x22-v6mr6672201pll.23.1520034280608; Fri, 02 Mar 2018 15:44:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520034280; cv=none; d=google.com; s=arc-20160816; b=tBtBW5v6bwAJ51FnSkFD4KYsrrCIju6nBLF6Tok10ydqARrKpnKcD4Jme/h9h0qbra ow5lL12T+mFGERDfFedhjAP+89S685dTFA3f5CYvLAYZCgukXCJuDBLgi5y1w0OURMcj IxJ1at6C4mI9FH499OuKUbMYajwlR4PNMLDKvxIfbyg3gBDaqpOzNAjF03S9l858VxLq kRe5bpFTTxSk8Uzm4kmRgaZBQBV+y1Tbzc4XD4EC99dmxgrcngpvitm3z/wD74OGt6pZ sINBAzAlEZ1qVzwDtVVvXwloYLsqeKc0tyrJx+GFB8R3DfMKGDwCuSijCWe89tWEbMYP C32w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tctOVw985Bl9UshLA8iSdpvCHp+pnBgEe+F/bMr1qug=; b=rae6/3bVOs69hCB6KtU9nBekhxDzTZjQeZiFRxb748GQDiJIvMAJFmdNUrD6GDiZ+T rTRPHpjUu+t263t0Zg2TgzLoNhSxQp72tX5Me2DlhTJJV3Fs6jVBOB1eGKCfisWX/EuN GvK4tC6R2cfDD9gKe5/Y9vevjR++Nn0hFhBI7E26EQshM7+EyBvtSp5IT9w3eDxmf21I 7IknobVBuARZ3GTD5WoT092kHXbbmjMA6wfRumTgWG5jW/s7PEF3f/fz2kL9HNGfWSJ0 hW29NxHKYVf8dYsx2tDAaOeKqcQyluYZSjV3GceujIKV8ELiA7VDOc1ObJkLJlsEWBWI fbQw== 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 u23-v6si5718652plk.116.2018.03.02.15.44.26; Fri, 02 Mar 2018 15:44:40 -0800 (PST) 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 S1425414AbeCBPpS (ORCPT + 99 others); Fri, 2 Mar 2018 10:45:18 -0500 Received: from mail.bootlin.com ([62.4.15.54]:36271 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033794AbeCBPpK (ORCPT ); Fri, 2 Mar 2018 10:45:10 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 5406E20883; Fri, 2 Mar 2018 16:45:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 1576720715; Fri, 2 Mar 2018 16:45:02 +0100 (CET) From: Antoine Tenart To: davem@davemloft.net Cc: Antoine Tenart , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com Subject: [PATCH net-next 4/5] net: mvpp2: enable UDP/TCP checksum over IPv6 Date: Fri, 2 Mar 2018 16:40:43 +0100 Message-Id: <20180302154044.25204-5-antoine.tenart@bootlin.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180302154044.25204-1-antoine.tenart@bootlin.com> References: <20180302154044.25204-1-antoine.tenart@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the NETIF_F_IPV6_CSUM to the driver's features to enable UDP/TCP checksum over IPv6. No extra configuration of the engine is needed on top of the IPv4 counterpart, which already is in the features list (NETIF_F_IP_CSUM). Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 39635de51dd7..31a2c3039e2e 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -8321,7 +8321,8 @@ static int mvpp2_port_probe(struct platform_device *pdev, } } - features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO; + features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | + NETIF_F_TSO; dev->features = features | NETIF_F_RXCSUM; dev->hw_features |= features | NETIF_F_RXCSUM | NETIF_F_GRO | NETIF_F_HW_VLAN_CTAG_FILTER; -- 2.14.3