From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Sun, 27 Jan 2019 17:39:25 +0000 Subject: [PATCH 4/7] sh_eth: offload RX checksum on R8A7740 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org, "David S. Miller" Cc: linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org The R-Mobile A1 (R8A7740) 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 @@ -670,6 +670,7 @@ static struct sh_eth_cpu_data r8a7740_da .no_ade = 1, .xdfar_rw = 1, .csmr = 1, + .rx_csum = 1, .tsu = 1, .select_mii = 1, .magic = 1, From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC27CC282CC for ; Sun, 27 Jan 2019 17:39:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D5A120989 for ; Sun, 27 Jan 2019 17:39:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="EEH5gCCt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726994AbfA0Rj3 (ORCPT ); Sun, 27 Jan 2019 12:39:29 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:38254 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbfA0Rj3 (ORCPT ); Sun, 27 Jan 2019 12:39:29 -0500 Received: by mail-lf1-f66.google.com with SMTP id a8so10194540lfk.5 for ; Sun, 27 Jan 2019 09:39:27 -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=Z+qVVsyJBLplm6bGaJBQWS/1LQRYqWLc8ZoZXm/b/XU=; b=EEH5gCCt2TcI2CQgEUDUw2ErI3aKFzT9XdfWk5bSCzbVA4oe5H7maEIl2NL+44t2CV yRj5pgXEGMPWJP3ciFRSprsNum4QjhpawSoef4rGoWhFsK0WdrcePDzm9DyJJlouB0rG UvoOcLmS8oYqlq+ZRvEJIWQdBPx9fJ0hoSTFAoL8CioU2+5Rce0fFrPA+/BvhFt70/qf biUBnvrkrZ3Al4g8k0p9rCV0Iby3SdVd3YSl0NgLHHy86dcWb10qsxwIRTOtbTu0/n2w Acf0gVgzP6xMPgXoa/k7kKp2YeF4EbeJTwguS2lQRTeuPSdCJjLktpyZ/MkAWGDA0sq2 SI4w== 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=Z+qVVsyJBLplm6bGaJBQWS/1LQRYqWLc8ZoZXm/b/XU=; b=b0jYBdjnsr+PbiOb/YA1J0TL08SeYILf4aqheiWLbWdS6lZU1WPVf5gO2mWmBZVRNz 2L6x4E+cVRR9RAU0+QmKlWOK2nPI2GYnDpGPBCgLyRvGjbQ2s/RonHS1bWlRUloUqGTw nMbwl6gOW1sANjtrJQkhbcTddTyXNl5QgBD2Ct5mSCzMe0Y0E7T5k4d9aTjsQwCNalqY H6JA9aMnEO7E0SiVoe3Wgr/P3AB6IKAW2HX4TMNWz1a2my6TOBebkAG2dWEnyRy3w3V9 x072HCnKD+xcNFhy008QAeeKB0eygM9NPtI68uC1rzNhBbU03cPis7b1IeNEXkCRDK6d GIsw== X-Gm-Message-State: AJcUukdH3TC7WjO5tqboFYpWoLIzMvT8CSyhiSDKfzz4K9wsqJLV6B1T oZRFDUSpOLdheuwFtnmVWkv6D+kiPek= X-Google-Smtp-Source: ALg8bN6IJz/2MCmb/nKHXnOrtHpbukN+QpG5KO0yRRPqIIuXRLlYsrwfShvVBjuUfUS8yxfYa9E2OA== X-Received: by 2002:a19:a9d2:: with SMTP id s201mr8866754lfe.154.1548610767030; Sun, 27 Jan 2019 09:39:27 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.150]) by smtp.gmail.com with ESMTPSA id z2-v6sm2670667ljk.50.2019.01.27.09.39.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 09:39:26 -0800 (PST) Subject: [PATCH 4/7] sh_eth: offload RX checksum on R8A7740 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:39:25 +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-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The R-Mobile A1 (R8A7740) 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 @@ -670,6 +670,7 @@ static struct sh_eth_cpu_data r8a7740_da .no_ade = 1, .xdfar_rw = 1, .csmr = 1, + .rx_csum = 1, .tsu = 1, .select_mii = 1, .magic = 1,