From patchwork Sun Jan 27 17:40:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10782955 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CB806C2 for ; Sun, 27 Jan 2019 17:40:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC5192A597 for ; Sun, 27 Jan 2019 17:40:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE3222A5A4; Sun, 27 Jan 2019 17:40:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88EDC2A597 for ; Sun, 27 Jan 2019 17:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbfA0Rk1 (ORCPT ); Sun, 27 Jan 2019 12:40:27 -0500 Received: from mail-lj1-f173.google.com ([209.85.208.173]:33624 "EHLO mail-lj1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbfA0Rk1 (ORCPT ); Sun, 27 Jan 2019 12:40:27 -0500 Received: by mail-lj1-f173.google.com with SMTP id v1-v6so12297447ljd.0 for ; Sun, 27 Jan 2019 09:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ao08bhATJPPJEJ2i7oY65jvyZ15tEsZMfg8UyfvAdIY=; b=oG+nKj0HsX0LBaT6NjwIXuTKcRa0lZZiAWsLkezwPdrkh/GhcA1iz/ynLP5jz7n2Kt VC/oq0dO76T3V6+zc7U1mibqTfVOX6rA9qsHCPqWkTfCRi4IDX+tg46AfHiftpXUsBHb Gce2rcjg4mhHBC0dwHTqy9Kmn4X+p3aQfggsulYfmMIB87FYk3o1CPV3nU5KrFmbO7Vu 54WcfS25pRqlpCuj2NEARf32xgpHgUkkmVSg5PpLEx71oVRky1B6qaN53SBduPf/zrfu AjRNuGdaLHQovqv/1VRV0xDVKJsmlaxpDxI5tBpQI+zsgswiYXVlgJYm9Ua2Xg3oZK27 kGfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Ao08bhATJPPJEJ2i7oY65jvyZ15tEsZMfg8UyfvAdIY=; b=I2ZUO8ymGm6KsJ9xZTATgsih+CqY4je1u862350ZNV5Amh8gaREOqKnVgY5EEf3FEy ZnGYvaTHMRX0tlpp+cobPfV8XcoHC7uZYq55Y2t6WEU2ut/SnfnRdLLTiuxkVdTY9Oub 2LaX2o27uNnmfRqzTDB1nbwsfhxrbL1L+NKahjFUYc7gtq+3JHG2ld/bY7FLpybJxTLU sKUuI5DlvRzs97k152LL1BedUG2YpRRNDcShEWSobQ2vv5H3CXXIRRkTYZP3uFTD4+om b4p5Gu9UcUBqAg4C9C6tLR2Vt3GxpnlesPTg7Rn+pIbPGhk6ZVy1Jc13KiTY7LPpxzhz K/8Q== X-Gm-Message-State: AHQUAuYblhLdwsgBpIj2/4L7iwQDTzDtmUeGHA4xvKF5BAw/rFGhKHR1 sXKOfdwbq0RfEidcFsVStEyPfg== X-Google-Smtp-Source: AHgI3IYv0zscDvy1aCFtUh0oUE0KIWMXwWn1lL21OMQLdj+zinbt1Z/wvp31TySswr3UfJV9jGY5Kg== X-Received: by 2002:a2e:7c13:: with SMTP id x19-v6mr5162800ljc.83.1548610824968; Sun, 27 Jan 2019 09:40:24 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.150]) by smtp.gmail.com with ESMTPSA id s127sm2602874lfe.8.2019.01.27.09.40.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 09:40:24 -0800 (PST) Subject: [PATCH 5/7] sh_eth: offload RX checksum on R8A77980 From: Sergei Shtylyov To: netdev@vger.kernel.org, "David S. Miller" Cc: linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org References: Organization: Cogent Embedded Message-ID: <32f4bec9-35e6-6bbe-f9b6-a8996fc0793d@cogentembedded.com> Date: Sun, 27 Jan 2019 20:40:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The R-Car V3H (R8A77980) SoC manual describes the Ether MAC's RX checksum offload the same way as it's implemented in the EtherAVB MAC... Signed-off-by: Sergei Shtylyov --- drivers/net/ethernet/renesas/sh_eth.c | 1 + 1 file changed, 1 insertion(+) Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -796,6 +796,7 @@ static struct sh_eth_cpu_data r8a77980_d .no_ade = 1, .xdfar_rw = 1, .csmr = 1, + .rx_csum = 1, .select_mii = 1, .magic = 1, .cexcr = 1,