From patchwork Wed Aug 29 08:29:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10579667 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 37FF517DB for ; Wed, 29 Aug 2018 08:35:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26D492A60A for ; Wed, 29 Aug 2018 08:35:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AE5B2A648; Wed, 29 Aug 2018 08:35:00 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F7B62A60A for ; Wed, 29 Aug 2018 08:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zVK+uKP9uDYBF4RQUL31+VtZshSlVxUVcBZQ179zOTI=; b=UmeVyr6rlmKHLx cpb32N2PJHThHe6jodlI37L3bJGo/BIvYFyjgfQrAT5eOxYnllsYrsxVWiA8Yd73+qfwq2TklNBMM iWEOx9lrNr1EXpf0DchqfBDx61kBMqDTr9gbtFv6tfL+qyv+CIWZRoOpA8nM0h2yF5Ki7R1h8XhJA PrXH00Rk1uISD7Z067MW6VHazL+PgJzOwvE5Xl4lqsBiZoIzNlglI/lyAcP72DrWikAKwBc1abeGI H/rOpLqu0LzOtb2mf4BkDtplIYZKgUO4xit3g4hp+g5F7kwIfDEBU/OSwu2wlAzdQEd+KAXQ8vh4Y LUszafXh7nzeu6u6WUDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuvwB-0005be-If; Wed, 29 Aug 2018 08:34:51 +0000 Received: from mail-bl2nam02on062a.outbound.protection.outlook.com ([2a01:111:f400:fe46::62a] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuvuD-0004kd-RY for linux-arm-kernel@lists.infradead.org; Wed, 29 Aug 2018 08:32:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ft7aLMdRhYL5fuIisx95uV5SmA1LSvSM7BuaglmHdcY=; b=r1JwVCdwKVBCleXcVql2CX395t29UNWGsH+b4UPg5WDflZuoznwIrW6Rc54T2jzTwWkOdRIyQ5wmZI0q6Sd8qrI1y2ZdYGLjuqXFVS6KDG2tvY/mLlBpgidxBJ4frkHCt2zlAAGjrP07uIAy25ex926YqJao26Dlorh0g+HhZLU= Received: from xhacker.debian (124.74.246.114) by SN1PR0301MB1582.namprd03.prod.outlook.com (2a01:111:e400:5232::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.13; Wed, 29 Aug 2018 08:32:34 +0000 Date: Wed, 29 Aug 2018 16:29:32 +0800 From: Jisheng Zhang To: , "David S. Miller" Subject: [PATCH 4/5] net: mvneta: enable NETIF_F_RXCSUM by default Message-ID: <20180829162932.6015e89d@xhacker.debian> In-Reply-To: <20180829162456.2bd69796@xhacker.debian> References: <20180829162456.2bd69796@xhacker.debian> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR04CA0013.apcprd04.prod.outlook.com (2603:1096:404:15::25) To SN1PR0301MB1582.namprd03.prod.outlook.com (2a01:111:e400:5232::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f53564b5-e479-4862-1cbf-08d60d89f90b X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN1PR0301MB1582; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1582; 3:yBoxctC164cMeRfLKeSWVdo94sNc4BVyZgHxeRTlqalDhzbMJ0Gr3FHVszPuEwJywQ6gw/+N3ycARpqR2dkFeqqmdz8+raOKq5J7SjJAARkDPepc53TGo4iXQQll+wWD+THRu6lzI1kN+85HiTyVNk4Y9yOxVGfUiei/ARA2Ce8LP+k5wilwJt2po+JnpZsB1rv/KUCU+96el0yVkKmEsOvhYX2Lvx2V3K1vdZd8y9MovqVMGliS+n25eaAFOLrL; 25:d70ig/i2qx6NqvuDvmsjzVc16pU2KlbjtIEVJ3K/w+h8c8DB1uOKrJR+L+1WfNT9sZW98tVjth7JJ55jJGU0SP030ducujL2mmA0cjrLkqlYP1x1F3emYrXYXJG7axlV6ney6+04fsnpfQlsgVB7N3w2jesgbojFPreXFcKAascWIpbSWZ5gKBS8Kl+6tMI+pWVUinJd5fFD63DXO8MSNVpJ1QQ0NaMAFbk/s2rwXhWcpn4Q/CEcbxxJaEtviH2knDZIoSLsAxVAYZcFurlRUDCa867zOdB1ezVLL8/iw0HEe04e92klm9IjBMN0YqtXvTxdoZ4+ds9GJY97QoegAg==; 31:546s1rVXGxwElJkqi7vHKsf8ONYlRD3rG+kQRPeKd3ISh1V6M3YbZ8UPTdARTeaKEUJWzPy4DmIET3hQlf839i0VxnV7ByKrJl6MTsvq1uPW0Wk61CKPwkpfynoRRMEmczQKlvQO7UgQ1dbQgTTudfpBwPBXm5vLiPz2b0OP9LoSkKgXsicxfPMImzR0cAMyGTriD/kGlNMWB8AekeMKl7lH5A2BpcxV9dwQpz9DYKE= X-MS-TrafficTypeDiagnostic: SN1PR0301MB1582: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1582; 20:+sMBPJdgl5V2wMiQrFCsOapJmuGIcLnfoDOVdTmdecScQZH+tSY2j1u51ARhHEOH9Fu8M4ryxFAvmlMj6HiVKCPlhPLwGylR4HnSNOWYSHi/2h7pXYOlzEUN92gSV78vEtyiOAoF4lNLQWbwwcWo8c0Xa+/1NGTAGBzqilnEHjYwHmgFwMgBZ63Qgb5wEK3CDtG+9xtjDwCvhotXxyT5aXsYkhh/GXzdiPF4K7yMfM4ukwBtp6C2sizIAckeTMvWPg3OLa3PL+qE1EjmGbCmhvWP3BFJ/zgKkwbIQZLFC24JRvzCYO1lfMCVb2hUs4BkDipFEU1l1gyRkgvQbS5ksshoi3GElAaRK7y6/bYuCse+YerYcOv9W1i1/S1HjngQWOaDH7eUZzuZMI0JhpmSCNAuNjfA2hw2ZyduAwx6HRg6sDWL4lm6tGT1z858SCyJom46FzbpK1KdfslmrwXz6ww3reIb8M9haEkzsG5nAw/pCosKNcBpeInqTO5P4XDk; 4:PT+D8hThSpCu+yNSY5+1cQZ+ajS4CSbYGRQCQIrTV7oeKUK0vRixnZW4OAJgjNLOVsBa0BmWwrfrihU19R+hThQI/XIyVUKw4rSkES6VTPK6aRB9NUTMhX8Tuu7XW8/sctM5eNry4zkaEpdTi3L6Fqjkxbc3hrTCjv3uOMFjUuN6z6P966ohWTGIgZ/43N8C41WFo66oAr4vkqfp6NpgiYpbfZiacZQ3WslGGR1VjHgj8Y0TU7et34X4rOxNfdb2F6lpP7I+rYbrjdRqIJ/+FA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(201708071742011)(7699016); SRVR:SN1PR0301MB1582; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1582; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(136003)(346002)(376002)(189003)(199004)(7696005)(76176011)(230700001)(72206003)(68736007)(956004)(446003)(478600001)(2906002)(5660300001)(11346002)(110136005)(23726003)(54906003)(316002)(1076002)(50466002)(476003)(9686003)(3846002)(55016002)(6116002)(33896004)(25786009)(386003)(16526019)(50226002)(14444005)(106356001)(186003)(7736002)(486006)(52116002)(97736004)(26005)(4326008)(105586002)(8936002)(53936002)(66066001)(6506007)(81166006)(47776003)(86362001)(81156014)(305945005)(8676002)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1582; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0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hOyANbRHdFKnFzFshW8TeDkxwGQg==; 5:lCXXCpRN7Fs6dkXyYyyCjXXDNMcehQeyB53jGGyrA/pRbtjVYHIAqC3IKNeDplsHtEccY6U7sHuky1gRbaHtFBw72UU6hvc4Oan+qC3ho15QAKmZentPx/R4t18qHiQZeTqzjdGreY4QZKUEwivxOt5bjVx9+elYlxxw20+mjDU=; 7:NBwZHa43iNQdi83WHE02ppRRlPw3GPoKPbSNJ4YIeZ7fuSmJHbYZ2NC41TG2EIuQdfjabsV0/N8TTgQdaU2/o8WeJSLh+CGMkTd7La3IE1UJOKXwT/uLrDCIO1ltw5w+pMjopxIsT3vLJzqkUE4VJ6IC4qvZlFT4HOliOQus+izy5WrezPCJag9mbwRyBsM6+CPgdMaZUf+QPC/CuRIRoWe+teZEfCTfM0gYBPjlb7mRtn1oP64ednRcs0+cBBdv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 08:32:34.1164 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f53564b5-e479-4862-1cbf-08d60d89f90b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1582 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180829_013250_080028_5188FB8D X-CRM114-Status: UNSURE ( 7.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Gregory CLEMENT , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andrew Lunn Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The code and HW supports NETIF_F_RXCSUM, so let's enable it by default. Signed-off-by: Jisheng Zhang Reviewed-by: Gregory CLEMENT --- drivers/net/ethernet/marvell/mvneta.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 06634d4f9b94..7d98f7828a30 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4591,7 +4591,8 @@ static int mvneta_probe(struct platform_device *pdev) } } - dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_TSO; + dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | + NETIF_F_TSO | NETIF_F_RXCSUM; dev->hw_features |= dev->features; dev->vlan_features |= dev->features; dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;