Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp264524imm; Wed, 29 Aug 2018 20:45:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbghEcy5Zv19EAwNd2OtVQ408cy+Gn+Yf0CJG1ORJj4eOTgIPOIQBtDLODgCeNL2TEQF7qs X-Received: by 2002:a17:902:694a:: with SMTP id k10-v6mr8361573plt.166.1535600748181; Wed, 29 Aug 2018 20:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535600748; cv=none; d=google.com; s=arc-20160816; b=y4a3jtzQYltlH95aPcbDpve5RnMiYl1ZbgAtXBjGjovt5moUolJ8JPiGO3xxkKzHMB eMo8yTFH9dvPSAFlytAQwZaSXVBR5bB8aj5o/vsk00SV9uBMNX9m5bX+cstjFd3LnZmU m94KPa5ZBCOaDRdztpT6nix3gvkgX0+q+k/58SwwRNJKJTcqnGpJDvTGWqKGdn9NqSP1 hyJT3aGxJxGMsRl75IjeowBGKIa0IhJFXyajxbgaqtwROyus+YfFqpmHTfd9JWRJ9GgZ Dn2JhWDDJeyPCALatomcYWc6JN2tsqysjnb6QswxTE55K/0jN++RRVulsBCvhR1eBhRQ CllQ== 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=UyCMPu52AJtRCcmNzJ8dtdSxM2VojpVtEgGXCwtAq3k=; b=IOGjozIKZVXMoaONkqbTcZfzyaaVpPixbAIGLLVe0tUqatj3/dcnykmoBfX2H1ZEnl WMXpMuqS5asVHaHQg96mBrxY4RalusJEH1WAC7u4XgCL5Wj1awLZ9XShBexGUEyHLyXI tlZL7uq2LiXQPUiSk9dA0VnvrvQ/8P2tzkNdU2OcsSB2pprUmJEdTKd6vDZmCLILrHQn eAZQDJhfjrGX1CqznFIJP7L1SHPb8eTeWhJWG7V3FM/HF6qm814A8Taxe+5qPMV5x8Ix 4cMkjoO22N8qtdVodw0K8HQERRYZorBerXTVe0kWpg767xIxXKne28q+d0uTZgMyaiWy gMzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sa4eIja2; 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 a2-v6si5522888pgh.396.2018.08.29.20.45.30; Wed, 29 Aug 2018 20:45: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=@lunn.ch header.s=20171124 header.b=sa4eIja2; 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 S1727544AbeH3HoJ (ORCPT + 99 others); Thu, 30 Aug 2018 03:44:09 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47139 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727446AbeH3HoJ (ORCPT ); Thu, 30 Aug 2018 03:44:09 -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=UyCMPu52AJtRCcmNzJ8dtdSxM2VojpVtEgGXCwtAq3k=; b=sa4eIja2tCeuqswTu6yLp+oVND6+kvGnG3+LXthpXHIJGaf1VTqSJnV/oN/1CUnB0b6sITyTyE3qlZsQX9l65o4/ObiO5Xo4n/B0CEJHvRVoHAl9TLQCLRADRRpCRxwaymWiq2R6AmRJ/H3d+ZWbE3XqD4iixo9oOcWMJm5KLFM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fvDsI-00053J-9g; Thu, 30 Aug 2018 05:44:02 +0200 Date: Thu, 30 Aug 2018 05:44:02 +0200 From: Andrew Lunn To: Jisheng Zhang 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: <20180830034402.GE16896@lunn.ch> References: <20180829162456.2bd69796@xhacker.debian> <20180829162932.6015e89d@xhacker.debian> <20180829130836.GD1955@lunn.ch> <20180830112745.61502abf@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830112745.61502abf@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 > > 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? I've not tested mvneta yet. It could be, since it was designed to be used with Marvell switches in things like WiFi boxes, it knows how to find the IP header when there is a DSA tag. > Do you mean after this patch, we would see errors as the following? > > "bad rx status 0xabcdefgh (crc error)" I've not tried it yet. That is why i'm trying to understand what NETIF_F_RXCSUM actually means. Andrew