From patchwork Sun Jan 27 17:38:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10782949 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 9BD661390 for ; Sun, 27 Jan 2019 17:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C21D294CA for ; Sun, 27 Jan 2019 17:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 806EF29F6C; Sun, 27 Jan 2019 17:38:39 +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 3EF65294CA for ; Sun, 27 Jan 2019 17:38:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbfA0Rih (ORCPT ); Sun, 27 Jan 2019 12:38:37 -0500 Received: from mail-lj1-f173.google.com ([209.85.208.173]:36505 "EHLO mail-lj1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbfA0Rih (ORCPT ); Sun, 27 Jan 2019 12:38:37 -0500 Received: by mail-lj1-f173.google.com with SMTP id g11-v6so12266562ljk.3 for ; Sun, 27 Jan 2019 09:38:35 -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=aHyVNCcWCeqcw7MfnB1A7u/ATcPWbzDNG8u18WnCJZo=; b=d8HNhCYqCTc5R7TZKUYzVXqFfPspdTkh0Py4OgB+IpxTbsvj7oGmbPaCN/Kacci31r OH7SbvPP3Rsj4Nr/ozz42HK9tL54iwbj1BItGLDY2cshGmk6A2SNFpu+4rFW/l4F6iJ1 dXQhucPj2PpyvdyPu0bHKXk8qHpwmKx1CMIdRTQLdhz00XP8bVEqcv7arA6j2Ucwbg7J Z4tgAQpC1G1X4QD6hGnWtegpVok5TrgQ63qeWzQAyx8+myU/KkfDQjG0d3deQO4RCnET EXQHNWSpsT8bNZmJMogK+xOvzpwv/A+jnVDZ2t5Vrnbexr2RkZjyMZcy0pFueNfLovZn FipA== 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=aHyVNCcWCeqcw7MfnB1A7u/ATcPWbzDNG8u18WnCJZo=; b=VUUid8+JFxZqDpdBtFVMuWBQ2yN855Xs1sy4ml/vqhWB210Fd4kMT8ceiorBc4N7aQ ohnOtznwMTSrcABJm/y4WzYi6AQArOHYwPBOCB6bdae6voaJYrTue69uhLlKmzrlU/7F Uqv/I9sNU+Xxh1tDq60LlSQNGDuISHcQtwodbo+sphEkxeeOp/k2WMP/V0tWFxW5q38m GqTys9r+Evs3vNopdBZuxZm4eU2RcVNsKV+SF40zc+me+G9DU3tykisn+vTbF9QtPYfw YzXejdlD3Z2NC/cP3AuP8lbvEPy8z6/sT0jVQ1PVpwAJf/sAD4yyo3/s/OJLwPH4Nz2d tbMw== X-Gm-Message-State: AJcUukd+JlEU+xseYKjJWUDKAtjfoaagO4N7vPu0V11ynwOiq29eL5bC ihHSTZkYkSyxMepp9yIuDb8GgmzGDDA= X-Google-Smtp-Source: ALg8bN7UOhxEoDtAnGFEpy4wwLXhcvd75ZOcttVkysG8aQ5hSuA5tSD/Ss70L5HzWdwpohNvUZo5DQ== X-Received: by 2002:a2e:131a:: with SMTP id 26-v6mr14279788ljt.107.1548610714576; Sun, 27 Jan 2019 09:38:34 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.150]) by smtp.gmail.com with ESMTPSA id j138sm2573355lfg.64.2019.01.27.09.38.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 09:38:33 -0800 (PST) Subject: [PATCH 3/7] sh_eth: offload RX checksum on R7S72100 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: <0476beba-ea1f-7675-aa08-573b74e84f4e@cogentembedded.com> Date: Sun, 27 Jan 2019 20:38:33 +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 RZ/A1H (R7S721000) SoC manual describes the Ether MAC's RX checksum offload the same way as it's implemented in the EtherAVB MACs... 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 @@ -620,6 +620,7 @@ static struct sh_eth_cpu_data r7s72100_d .no_ade = 1, .xdfar_rw = 1, .csmr = 1, + .rx_csum = 1, .tsu = 1, .no_tx_cntrs = 1, };