Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp259207imm; Wed, 29 Aug 2018 20:32:48 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb13UNDEMWMNVBVmXkIXuG1a81gcZ4Nl7IVYdzs0kcz+BiOjQZGdCfXgGrKTLPemy0Ptque X-Received: by 2002:a63:7b4b:: with SMTP id k11-v6mr8272440pgn.64.1535599968591; Wed, 29 Aug 2018 20:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535599968; cv=none; d=google.com; s=arc-20160816; b=OVZWUeqaFlfUME7oiXZM8c6aBS17dURJzXfWRRssZ7A3cCHsABFucXeF36GDTb4/0Q xXdyWl58H+78sdyNgBZDkz5/xp8TRs1yf0TweIp2fr+m9ul1BnQ99ksxup6nMstj4+e5 BKqgPIAaI9Ca2r4D1IoxVqeXLG5U2vF2RR32hlK5qR9d+PXFJl4wyBWq8um1Vys7Krvq ss5k0J3CUcbggRfDlNG92yAkkZxZUhliCxkxXMYOwGY6xPnawZPGXCQT7tgoAgmKMysL NK/2oPf9CjswfU2mkqRfPUk4JYHtVCQW62oC2euotr9ikVzbJeNmOCZN6aI440O4M8mD c8mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=HtBKTYYzkp6PCGMat9RX0bNPWGqoz6nB4wYNHKzX3ws=; b=lwACXn5GzAbDYFw09VtnusXrYLE4oWOh+iXcxf57wu2JfUH+E91J7MhlzFdladLDDQ ImdTsy5j/Ps6P7JgBUIYwap1I67b0AsPHlpoc+KrRp8+0nD5SNZTj7vCN4EKH7/QGYYN aj9S0hxeo6bAzAyfxkFULktDvKiQFvFy3e7nIJx1iV0EOf9qifeVZQSFCpJnuW+kvQxL ofDJr5iYo1tbmdEtj7boRJbjHnnkrhskw4hf4E4ZoOUr3n1TvnNeeBfxlNS4BOFufQX4 fXccQeJzABKgOSoA3cEqAnPLd605P8bQiiGs+U+JQa+nIRApb9QmnqA5QnmiK9DR9EdI oq5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=JhqAO23h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f32-v6si1760875plf.252.2018.08.29.20.32.30; Wed, 29 Aug 2018 20:32:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=JhqAO23h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727510AbeH3HbN (ORCPT + 99 others); Thu, 30 Aug 2018 03:31:13 -0400 Received: from mail-bn3nam01on0040.outbound.protection.outlook.com ([104.47.33.40]:59392 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727195AbeH3HbN (ORCPT ); Thu, 30 Aug 2018 03:31:13 -0400 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=HtBKTYYzkp6PCGMat9RX0bNPWGqoz6nB4wYNHKzX3ws=; b=JhqAO23hi0wmG4wBaYHg5No2ejKa/pepOPlAhj1g/bNBGTj7cyM0hXV35LvtGQx0FVhfwIjx1MgcQqP7WjZ2XLGm9kJ92ByuqK7GnQXOOpon4mvPVhSWyI1BYoIKAY2KSJfoM5DynGJ6Kz0nfyIRF9EIDhUD5vqPCay4cbIQHaM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BY2PR0301MB1575.namprd03.prod.outlook.com (2a01:111:e400:526e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 03:31:04 +0000 Date: Thu, 30 Aug 2018 11:27:58 +0800 From: Jisheng Zhang To: Andrew Lunn Cc: netdev@vger.kernel.org, Gregory CLEMENT , linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, "David S. Miller" , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 4/5] net: mvneta: enable NETIF_F_RXCSUM by default Message-ID: <20180830112745.61502abf@xhacker.debian> In-Reply-To: <20180829130836.GD1955@lunn.ch> References: <20180829162456.2bd69796@xhacker.debian> <20180829162932.6015e89d@xhacker.debian> <20180829130836.GD1955@lunn.ch> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR01CA0086.jpnprd01.prod.outlook.com (2603:1096:404:2c::26) To BY2PR0301MB1575.namprd03.prod.outlook.com (2a01:111:e400:526e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01dd6ef8-2a88-4e68-e13b-08d60e2904f0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BY2PR0301MB1575;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Z1QHaqWlZ0cGkL9shjNjbFQFc1OhejsJp6LFTbrh1/GDwZ4Tf9Fi5xRpj7H4mN3rDFcVqPwba++Dw4LWBbijdO6UKaVeSLljEAXAK9+g3pyUymqeD99eZXy1Je0R4gmzmxuPsQu9z9DncXxdgauLrKD5RY0GbsKI+7c8sb19UPtPLs7iDoR3LWCACMImcsu2phtoCo4FMlPtanAT9Awu2GvUAqIql3m54dKkJlhdKei+gez5LwojETq99vf3/9xSrOrMMTnAUwVSXB9/N4CzSpPtPYZLqcasoiTIZ1Q3cMK+j2r4nIyJz1Tnkfk8M0nDDhJrwezXKYP5hRBXNvDj51IjPv8DU4x9IBEnTDnNpFO/YageOj0zK5h07XjPQmn2Afaui;4:kBWJyIAkIlYEPk20sdVsw1YuOiyq0SrZk4v4ZAPFs1INE8cgD7CqAIIl4236i/6IOsiqkqG1faQcaNwUm5jckSdICg7XpXVe+DCaw04MpSeOR3jFqz8cQuaopHKM8022M/+vGH5y4GQUgfZxC7+vBWOtONPSBTtHdDUrbJ1uaW8JZMs3sKJcVRDlIlGun/hnjlRPizlrS/EU/5QgklTM9a7TFfoyaLZXt6qvDOm/cxaFk/SLe+N5PSBVAYFqlh1TG7bB4SWRYqSC+79MMopcBghTGhT7NFsJF4EonZZV0GhfSrikG+ltx3ymcjACfO0J X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(258649278758335); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699016);SRVR:BY2PR0301MB1575;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1575; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(39860400002)(136003)(366004)(199004)(189003)(50466002)(47776003)(25786009)(3846002)(6116002)(11346002)(476003)(229853002)(1076002)(23726003)(66066001)(33896004)(76176011)(52116002)(7696005)(446003)(316002)(956004)(8936002)(81156014)(6666003)(81166006)(230700001)(1720100001)(50226002)(386003)(6916009)(16526019)(186003)(8676002)(26005)(68736007)(97736004)(6306002)(6506007)(55016002)(2906002)(106356001)(105586002)(9686003)(72206003)(478600001)(53936002)(5660300001)(86362001)(4326008)(6246003)(54906003)(486006)(7736002)(305945005)(966005)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR0301MB1575;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;BY2PR0301MB1575;23:lQL1uyefCTM0CveBGgcVhcnHmgd5XFkJhgeWpaB?= =?us-ascii?Q?s1lTzF2C00CECmXUigcnIeei9JJcOuJcwtx1hyF0+UvT0BL3kFb3+sd/TVmX?= =?us-ascii?Q?/siCHATz/DarGrix3z7AADb/r4ndz+kUyYtvDAAxBhBFJ/ZpNxCRU3agyvFP?= =?us-ascii?Q?TDNCNWXiGWUwBIqCMc6jBWBGwbogoaj2hOM7P1WQ3kAsz8iHOFOpR4//n/i6?= =?us-ascii?Q?Wnfo9ynKIJ8xiEWvG0n2xuZLETQJRgQVu8B5TW1D0WQAeP/EglppwS9SHR/H?= =?us-ascii?Q?W47WWEB+8PuMX/aGMTjCaD1BEpLAkil6NMFkgMmC7ocKI2zpseImX5LUiTTN?= =?us-ascii?Q?dQT9teUc5wMeAokq1I2AkjmCd5tCl8gBsI+roGur0vgoxeLY+vR5K4pqR4So?= =?us-ascii?Q?1wNMvalhu9yw8UydmQPdyOL/twEl57Xeplo03Rxft9Kq99kO/hPZFHWwzJ7b?= =?us-ascii?Q?Gr1VcJVvv6OzK3X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jYOSyThXorOKkbMC5bbOonTx3lpwTynwIceH/+0h3TrIK0uMPHDyAbZoLxN7sm6n6qiTeZNyazunmaGrLxvWkMSx8ETXqm+W0gFUvmqKOaQLjUMHwE+OeFAkrM4V+gHT0aVqGlPhhUZyspNPpP3TmjcvtQqJn9c7JHeUtToUW+6m0c7eD/UyCLjLCBbo25NClKDb2RaOcIO1ZG0hpclToIDf5CEASbR9hglPWEo SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 03:31:04.1573 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01dd6ef8-2a88-4e68-e13b-08d60e2904f0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1575 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Wed, 29 Aug 2018 15:08:36 +0200 Andrew Lunn wrote: > On Wed, Aug 29, 2018 at 04:29:32PM +0800, Jisheng Zhang wrote: > > The code and HW supports NETIF_F_RXCSUM, so let's enable it by default. > > Hi Jisheng > > I've never studied what all these different flags mean. Does > NETIF_F_RXCSUM mean Ethernet FCS? Or does it also include IPv4, IPv6, > UDP, TCP... checksums? Per my understanding, it means RX checksumming. And it only supports IPv4 RX checksum, the code will > > I've seen network interfaces get checksum'ing wrong when used with an > Ethernet switch with DSA. The extra header DSA uses means the hardware > cannot parse the packet correctly, and so cannot find these headers. The network interface is mvneta? Do you mean after this patch, we would see errors as the following? "bad rx status 0xabcdefgh (crc error)" So for DSA, we should disable RXCSUM? I'm not sure how to handle this case. I believe other drivers(with RXCSUM enabled by deafult) also have this problem with DSA. Thanks > > If this is just for FCS, then it is not a problem. > > Thanks > Andrew > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel