Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp533710imm; Wed, 29 Aug 2018 06:10:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaEIZdCAKLyPzK13pZAHg34+dZJrBq5M78mfcZg4ODKfuyWvV8zkp219jWOCX9+Ac/Ex9hf X-Received: by 2002:a65:5144:: with SMTP id g4-v6mr5558430pgq.21.1535548203066; Wed, 29 Aug 2018 06:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535548203; cv=none; d=google.com; s=arc-20160816; b=XwVQmOTGCW3HmP/lP6xf6U/9bQkpBLD/ZhL8pe5fIN0pVMiE5poFnwauZcba8zCF6b GEuC+17C2eF9Uw0U8FZGzQ1uETiYE3pgSy/jwrtpkzSxZ539lwbBrp+lQnz+2aGlRUMn g5LXULAT7y0DtskX4ENqfF4R640Y0PFYPwt2+x3vgyWgVJpKRB3cp5ctHhSs6XQ4xfjg r4S+aueJtq5dMI7PpktHyPZtVQ6SiyrkCtT2fNcG+9Nc7TIROMueXmIBtlhFINxWMqEZ tf/6StYDDFTicanT1mkXLXpg6Y7LD3YDrZVqEQUftem4rKu5Hwwq1dms/LJJZ+Wirv9F cs5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=9E0h/7VzFwMRNl9y/NWYbEpER0tO12WyFibW07WCxO8=; b=acyLboHK0jPlJuVn4QLSiPD/3mcbG8TBnkOkPSr5JBCnyixaZtMZfXrYcvQY9gtUQ3 yTMSbdq4Y32Jo9Z6pRblJ+V0lXNlpIqxVt92C/u5+5JgKVWr44IxZtzFp38Wi5vG29qL b3ToQkaR4PWsQfS0jW+KdR9FGol1m+VmjlmJlcsMgjrxILMIMQ8SyBZRo0koVio17v4X YRe9Uta/pEOlWvW0CPBI2CHdBgVkM0z67yMIVYUo/cttdnUWSryE0y2k+hUjXzbigB7U PntI96bfJpeENQrRzPqXLfYEquW4BhqaUos+BIN6bUmjkTuLtxN+ZeixGs/Wnx+MW13d DZ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=DQakR++1; 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 3-v6si3609657plx.173.2018.08.29.06.09.48; Wed, 29 Aug 2018 06:10:03 -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=@lunn.ch header.s=20171124 header.b=DQakR++1; 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 S1728522AbeH2RFb (ORCPT + 99 others); Wed, 29 Aug 2018 13:05:31 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46332 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727537AbeH2RFa (ORCPT ); Wed, 29 Aug 2018 13:05:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=9E0h/7VzFwMRNl9y/NWYbEpER0tO12WyFibW07WCxO8=; b=DQakR++1dMvzELHojo6wBeMBMbpxnVjxGlVcg/7xDw9fPIfRB+V7KeoFznb7tQXntkk+uezVUv01gPpdhBZgvD3EnJCq3yZt9YgdMSt62GEQbWfW4kg8LIuPazX/wnZdU/TTeEZSQzRLxJsw3B08hgLK+GV7S7a/ow+Hn7hv6n4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fv0D6-0000pH-2G; Wed, 29 Aug 2018 15:08:36 +0200 Date: Wed, 29 Aug 2018 15:08:36 +0200 From: Andrew Lunn To: Jisheng Zhang Cc: thomas.petazzoni@bootlin.com, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 4/5] net: mvneta: enable NETIF_F_RXCSUM by default Message-ID: <20180829130836.GD1955@lunn.ch> References: <20180829162456.2bd69796@xhacker.debian> <20180829162932.6015e89d@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180829162932.6015e89d@xhacker.debian> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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. If this is just for FCS, then it is not a problem. Thanks Andrew