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: 10782957 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 3E2881823 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 2FE0B2A597 for ; Sun, 27 Jan 2019 17:40:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 242FB2A5A2; Sun, 27 Jan 2019 17:40:28 +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=unavailable 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 ABE8E2A59B for ; Sun, 27 Jan 2019 17:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726357AbfA0Rk1 (ORCPT ); Sun, 27 Jan 2019 12:40:27 -0500 Received: from mail-lj1-f170.google.com ([209.85.208.170]:40252 "EHLO mail-lj1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbfA0Rk1 (ORCPT ); Sun, 27 Jan 2019 12:40:27 -0500 Received: by mail-lj1-f170.google.com with SMTP id n18-v6so12242152lji.7 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=D0xBWV+t7vTUjDwbnRYbJWBeJibItBaaVMr/EPR2d/WVeZAho7mj7GcdR7M2vbchsi ZCNCo1VZ3WbzbDaagOl1orqwvRq5sxzSfhJsvgxoqnfzFzLJnHBOHSlfvkR5wQ0izLe7 RL1TXDUF8aUN3EpZF5mwf1opgFiHRj/HAkGVn0k7DPNtzC0H+1Z/cAreUx9Xci2yMLnq cEsIpsurRA1n2SYFkj4TStJXNlx0J6lPW10wadWwkdbK3Uq4WV8+GtJbNjUNW/g4M7qi 2pTYHGrc57R9ieTiBfhLZoR7YlyfMqTyU5wYfmnOCTsCuy+AzElvbq5XoFWIzBMTQMbM Izzg== X-Gm-Message-State: AHQUAuZqVRkqKc+5W2gKiw+BdxtbR41gJ9s6HZM+0VhubQ0lMMt524df 0Fd8YFUKCNxkwpOjqkGAlyo5c+ArtQ0= 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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,