From patchwork Sun Jan 27 17:42:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10782965 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 208871823 for ; Sun, 27 Jan 2019 17:42:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1290A2A59B for ; Sun, 27 Jan 2019 17:42:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06D112A5A4; Sun, 27 Jan 2019 17:42:18 +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 B107A2A59B for ; Sun, 27 Jan 2019 17:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbfA0RmQ (ORCPT ); Sun, 27 Jan 2019 12:42:16 -0500 Received: from mail-lj1-f179.google.com ([209.85.208.179]:45647 "EHLO mail-lj1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726630AbfA0RmQ (ORCPT ); Sun, 27 Jan 2019 12:42:16 -0500 Received: by mail-lj1-f179.google.com with SMTP id s5-v6so12216997ljd.12 for ; Sun, 27 Jan 2019 09:42:15 -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=BYbSDIH705JTQdZk8auJnmv7JIjM4wJP9hknZKvmNxQ=; b=DpNPCNWFp91Qx1x5CtrC0h2qKndmZsMEUQvG5dl4cDXSed9vnQLM0IvwiEbmGFbVbc NviCv7+uxPiXtZEDx4witWflks6u8vTlw3HAiqLuQ9aI0e66d8L5slwCUzMuEgYjdq2X qhbk4k8LX+y18dGJFgz14ROTvfXYdp/LCLQJ0X6CCb07o3lQKSZO8f5PCQvTTihzLnTA rwzWXWRYh0EyhMyWWaYfV66i84aNPbIv52YBiSzUa8crTYBGlmARxIiD5nGluRXsBPs0 VJY5pxpWuUYpVf6FGlFcgyfKZ3Yh+segdyocCZby8QinryvTn59X+P3frBdBg8sU5aG3 rnuw== 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=BYbSDIH705JTQdZk8auJnmv7JIjM4wJP9hknZKvmNxQ=; b=RUo/W3qElBz4SlFSxsLjY82npiMJWZCC8Pjprf5xf7FD1KL0Rz+H3THm8zTDDNgYFE Q+gNQlF4NaQMtE5QWKDUSLXYH6Xx6hjcFNBeYUShqOfW8ts4XBwiTRoDqbzzs9z8bSjA TE2gG42Ze1E4PVt+mcSjBVlbSVRtM1zsfxctWhovfJBN//Hfnt+uyHHqMe/g3CNAYMtu 0JEiKnR2hWdFEp0+mz7miVamZg6c04VFaDPXFhCtldbE9lBQPn+HIncRk+sNyy0nosz2 SUrryhU4bkXmCB/hqTboSv9L7LS1eDfH9lyTf6n/niQjF6rLt6z7VoHTdD2a6NocLASC +AEQ== X-Gm-Message-State: AJcUukfelzEjBZGgzA0D4Gx+1cbI5fhVDpmkXSHX+dcCkYuk99N5iv1u 3KvgCNvxvvT7wDqhzj6ad4KXc8vB2os= X-Google-Smtp-Source: ALg8bN6elgr9PuZFYkjNP37T8EtrQfeF9EsxjQEpHQYhKClnQV+1SnPLUdWraYIRdgzwwRUUljdItw== X-Received: by 2002:a2e:20c3:: with SMTP id g64-v6mr15099809lji.101.1548610934326; Sun, 27 Jan 2019 09:42:14 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.150]) by smtp.gmail.com with ESMTPSA id b17sm2523107lfc.21.2019.01.27.09.42.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 09:42:13 -0800 (PST) Subject: [PATCH 7/7] sh_eth: offload RX checksum on SH7763 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: Date: Sun, 27 Jan 2019 20:42:12 +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 SH7763 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 @@ -1092,6 +1092,7 @@ static struct sh_eth_cpu_data sh7763_dat .irq_flags = IRQF_SHARED, .magic = 1, .cexcr = 1, + .rx_csum = 1, .dual_port = 1, };