Message ID | 20180831161003.3f0dc351@xhacker.debian (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 02CB5112B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 31 Aug 2018 08:14:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3BCF2B994 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 31 Aug 2018 08:14:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D58CA2B9C7; Fri, 31 Aug 2018 08:14:02 +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 4AED82B994 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 31 Aug 2018 08:14:02 +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=VwaObhBtoFf1pSt0hybnTaVmdbV3sHDSNXSV2yqwXQ4=; b=CyFU6vwMvmG5VB XGdAO8jCSLKLhR8jLBRJIpT65oQedYcb37PAoZfVGIW/fHAku5DsqI9nHXVWUYzsdg6aB8/w6wAOU z5CoWojLBqMnDS8aLmKc/tYUFdEpw4/vcinu2pPV0OZg+96HtP0myCHXkzy3TvgY6+tEOf4ytM2TE wl/u0I/lcL6DwsGHL3qNMNjxonGUSuuH3peLunv9L5gVPuvDC+uMj6pUE6BAFLaiI6wh4/cpvAdi2 0AhTiDt7taGWuDFUwf/a0B/KA8JU7fWaVn+ATUwzIBssaOYV5mKusT2IvRWv97GMO7s3s1nfV9U4G KjRYt/BOfYUomdCV2Szg==; 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 1fveZ2-00051k-0D; Fri, 31 Aug 2018 08:13:56 +0000 Received: from mail-bl2nam02on0048.outbound.protection.outlook.com ([104.47.38.48] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fveYV-0004lg-9B for linux-arm-kernel@lists.infradead.org; Fri, 31 Aug 2018 08:13:54 +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=tk/3BBOGvSH8mjzrpmZNyvfjMH/ibe0Pb5ZBdJjw43Y=; b=c5/fvgMT5lHEIl7/tB14JUy3pvOcpIsISjCx1y+wiVJhj/1UQqsTqL7ZoOfnsrIUNJ+mrjdutOVXkag4tjiEXqPfz2h7ucTGkC3bDgH0nCnjpBmb2Q4F6z1m/Fis3hTtZ82ha7csubaPopPFO0Uoo92MZOQM3aGXVEouncM4ung= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BY2PR0301MB1573.namprd03.prod.outlook.com (2a01:111:e400:526e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Fri, 31 Aug 2018 08:13:07 +0000 Date: Fri, 31 Aug 2018 16:10:03 +0800 From: Jisheng Zhang <Jisheng.Zhang@synaptics.com> To: <thomas.petazzoni@bootlin.com>, "David S. Miller" <davem@davemloft.net>, Andrew Lunn <andrew@lunn.ch>, Gregory CLEMENT <gregory.clement@bootlin.com> Subject: [PATCH net-next v2 2/3] net: mvneta: enable NETIF_F_RXCSUM by default Message-ID: <20180831161003.3f0dc351@xhacker.debian> In-Reply-To: <20180831160810.2539ef4c@xhacker.debian> References: <20180831160810.2539ef4c@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: TY1PR01CA0180.jpnprd01.prod.outlook.com (2603:1096:402::32) To BY2PR0301MB1573.namprd03.prod.outlook.com (2a01:111:e400:526e::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8e9cbb7-cb50-4147-f4c7-08d60f199689 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BY2PR0301MB1573; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1573; 3:jOBJI3mx0U+5tTNN+y80vf1r2er32zTYmYicf1wkZYOK+9PIt5avVuXtv4s3XOeEVDsm7LDWhCd7df0Wnhb67Sz3hZyX7wSUcBSvYN3FFaOHuPLrRKklKDUSIz9302oPcKfN0vSEyNU/g+n3i/uykh436HqiEjAC1f4MsYkobBZnv2FyZkMEJkXIhyeEGz6iDEdKoWTnp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ZXF6TXJHeb3+J2LLuEW1WiqcvBn1Bf+IBAKlfQTbLMDPDuUSJOysJhBuwZ1r3OYeAv51qOXJ3BMTgp/pVlJGqn0mLeiBSxZU9lMa6zhPYpFjgq7x8Ybp3R0SCGgACXOxibKr77QsRF3HeW; 4:B8ZhU7WVGBUa0AfA3bPj2k9qH1orZYGmbnYDNII2YejE61mauy3AHUar3V5lXHuMOZD2lnKsLQzWraBQ58gplcYVxAigGedvEcCqw0+muWQajyZpDZbngYu51Sm1frGT9Ea9Yo9yzk5bMxTqSsKT6+lxvgw0yXewNHOQfN8nfNNjZz076Qz9SootSy8zojJ2SlcmuQS73ULuNppNMphkus81WCX4MqCDNsPl6cYI0k8qHhMkmxKK6YGge4Ne2xqlC5d/cvdlQMmOJcZamF8CDg== X-Microsoft-Antispam-PRVS: <BY2PR0301MB157326C3F76084DD6E25ADE7ED0F0@BY2PR0301MB1573.namprd03.prod.outlook.com> 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)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699016); SRVR:BY2PR0301MB1573; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB1573; X-Forefront-PRVS: 07817FCC2D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(366004)(199004)(189003)(110136005)(25786009)(316002)(52116002)(97736004)(7696005)(16526019)(47776003)(486006)(76176011)(66066001)(4326008)(26005)(186003)(50466002)(386003)(14444005)(6506007)(86362001)(81156014)(305945005)(2906002)(8936002)(50226002)(9686003)(8676002)(6666003)(7736002)(106356001)(72206003)(81166006)(3846002)(55016002)(105586002)(53936002)(478600001)(6116002)(11346002)(446003)(33896004)(956004)(476003)(68736007)(230700001)(1076002)(23726003)(5660300001)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1573; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1573; 23:j3uPlZtRxsyQ0Rvf+FGznfjZ3xrkYUYOFvf0AiP?= hOOAhe9tqOK4dbPbrWU76XtAmHbNw9TGYhV3yT1o81bZ3RwWDk3BA/9ootITwD8M4rD4Q6CBwCEjeHrZS5ivOtrJOKID4p4G/49WUTmihetfNKDjcbforEDWH/mR/3yyZsGCQWy+LKI5D5u8DOOEeZz14aD3xYkTglZHBz5mDAT8Vom6fUfjD8hP84TsR1Nb6dDq/J0kBpvB/I5JotCPVFmj0Kd5mgUCb9b+svBUvFmWWWZjFkCRM5xlLqwoF+c+/qviP55uInPsTtD9uM9DK8FWBfYKYi/uF/zxZ9AGc2R6Lx2Rgc1HF31xcNOaUpux/7hP7wNie9kTN+UPGDcc+/J/JOPbX8uR2QMsgbhTnIMlffYGijqA/NivNnbylZQGX+DHno90HYzJ6t1JKfAdqGz3/RSAB8qisagPSqgf/xsD88FEGnFn1+EC21YBT2FgeaSlpI6DXSESYboRKPu5B2Go8K1z/pIE35eigIlIIWjUFF+J+jDFqhZ4loMNaZqvt45IfWTLiS6m09v58VoeqysDiwuE4UnSO1FGS5Yak97JeQldm2I3cSfjE8XaQ15TzO3AgXv+CCfZu1j29JJyilJg4E+GoAXib4/jyPLv5n7jXuS15mwPFXYdMYcF+Dvyhpr+AcGJkBxRnFRySkqmxzPr2bOvBJvczjS59sVZZg+GD2Fhju6fWcutXpSkUH/FohRpGBaEda4xYbKdo1peszSg6Wqz7GD+efXuuHfIIO2HKPSGLittmHzoQFMlv91xgjUWXbvprSNPlkZzEyAXid0TV2Tc3Hp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CJTj/5a1cFV3M+RCjkofdudjYqc5PtJnD/YTbSS6+zlfUtbqubmVMXWrcL8B/qjY+obmAmCRVt7O2piAFb/lDFCJI2uhcT0DieNgizFSBfL5VzW0gMv2QQxxLxr+EVLNSwnYhtxN7bAcONaj91RvdPJAn0D9teFNt5f17dezuT4lG7850oHv6fVs5VMVpAr3L4Y/2EzOqBm/n3xrrphwAOFmRKRYB5irKB5rEExiuFuyW5A==; 5:2RLHCzsrw7XFa48kQ5yrZqaFGrYHsA+zkYF34AfIFSsHolmaBvVtjTnLeX31pdi/RixJ1JRUAeXAkqWJk1mVAkTIxbqo2mc21c9pNsBU1yBEW2fBudl3sc/a0qPTBRydanWsDPsXKOV6yopCK5YBiHY3Lf5LMpZJqGwbwe5SILQ=; 7:X3SMzlbGLpn5oU/Ap2Llddl85Gdemoyx/VOJXovNaVC87fU5DFyOgmgdd0lqwpOMk27plsWquaCGB/FoRJf20GHzDShVxZkigejF/HGnvqHmQ43nLTBkiIi0BS16J24kAKNOxT5ZzBSOUN9skHDTKoiP6uU534eAszKcrAqGl4foaGmjcQyKCNBUtB0WL7h5ki/fgx92h8rc2UXCf0z/zgWeGSceI5Z5MTtB9YMUPe/69SZ+2yb4bDMQb8wUSeWH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2018 08:13:07.3079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f8e9cbb7-cb50-4147-f4c7-08d60f199689 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1573 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180831_011323_431641_42955F00 X-CRM114-Status: UNSURE ( 8.33 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
net: mvneta: some small improvements
|
expand
|
On Fri, Aug 31, 2018 at 04:10:03PM +0800, Jisheng Zhang wrote: > The code and HW supports NETIF_F_RXCSUM, so let's enable it by default. > > Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> > Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com> Hi Jisheng I ran some quick tests on a 370RD devel board, which uses a Marvell switch connected to mvneta. I did no see any obvious regressions. Tested-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 814aee92a1d3..bcd20ebb2ebd 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4595,7 +4595,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;