From patchwork Mon Feb 4 18:07:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10796295 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 805751669 for ; Mon, 4 Feb 2019 18:07:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7185C2B730 for ; Mon, 4 Feb 2019 18:07:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F1FE2B971; Mon, 4 Feb 2019 18:07:58 +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 10DF52B74C for ; Mon, 4 Feb 2019 18:07:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727917AbfBDSH5 (ORCPT ); Mon, 4 Feb 2019 13:07:57 -0500 Received: from mail-lf1-f47.google.com ([209.85.167.47]:46697 "EHLO mail-lf1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbfBDSH5 (ORCPT ); Mon, 4 Feb 2019 13:07:57 -0500 Received: by mail-lf1-f47.google.com with SMTP id f5so568979lfc.13 for ; Mon, 04 Feb 2019 10:07:56 -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=EXKdwmo20YMZC/V88QG3nxEMIZWNmrNm7jkbU1maseQ=; b=YV8rABnW+J780n65H9fXRliFm0zCPVpVqzD76d43JkViLK1oKeKi1O5hd/gsZu/e26 wGFromjkGAImq/5FZbSXPs3qs3IyRHO2HFe4RBp3iXRMMZEOh8N8DRnH+0SxlbFLYOhq vdHibW0KQ2Eh0pOXIxR23O2gLWiQ2usYb4oU/QJIMA3KrC4ETYzyL/rB4vODcmL8/SW8 lgYs7L/U9jJPiOlbNc2rFSGQsdaEiV3IbX7WJ89gMu6TMaOfwfv1S1AIXBPgZ8ngxhYD iCH6FfBBW1NfcLkr3m8Low8Je2/TumB+zrnnkM5YtowcKpFIchVJHhoSZ7tJCRmtTe+R HbDg== 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=EXKdwmo20YMZC/V88QG3nxEMIZWNmrNm7jkbU1maseQ=; b=i4S637q6wJvSpNV6ga8ja4M9ZwZpwNtFUzmGCPMj7TesFOpCdSarjwIsAZ8w/zKhOV lacU44fDejqtELZNzrfK1owOVgDw8SvhaHMN6/gpt2Fa1MWALUuYsXvpBoBjVpuonxx7 fjFthhSLgTuSy3hYlRHkpkXdXs0lkbsQQSm6l3DUM64ATwl0aCvJ0FxWOOtzv0EaWZ9L YmIv2mr0/35xsayFYJ8PmZAQFk4wcT3GUnOD0WpGFJEY9atVXClXzhffPvOgpAGzIeCI rNeedrwaIhV0jfmHc8F5D5s++ATcVt1Cw0FLi8ne1zlWsSnTs+HXjbe9N+loFivekaW/ nsDg== X-Gm-Message-State: AHQUAuZLDe2FGeJz4bkwCLXi8MzS77ZBlVBBUHdetaqnS3xvj7FiBDEJ 68h0gDwImRTd8rS0k2hqy+CLVPRRlcM= X-Google-Smtp-Source: AHgI3IbHGXSUyRQnUdfo/3lb1oEuJK/VQRBrTKo27lX4XNucODD6rc96Nn1QS2dnKndoQAnsGcbm1A== X-Received: by 2002:a19:f705:: with SMTP id z5mr425571lfe.158.1549303675231; Mon, 04 Feb 2019 10:07:55 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.83.140]) by smtp.gmail.com with ESMTPSA id j12-v6sm2846626ljh.66.2019.02.04.10.07.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 10:07:54 -0800 (PST) Subject: [PATCH v2 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: <5d0f2d2e-4a05-b659-7f95-264335ab66ab@cogentembedded.com> Date: Mon, 4 Feb 2019 21:07:53 +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: renesas/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- renesas.orig/drivers/net/ethernet/renesas/sh_eth.c +++ renesas/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, };