From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH 0/3]: net: dsa: mt7530: support MT7530 in the MT7621 SoC Date: Fri, 30 Nov 2018 14:42:40 +0100 Message-ID: <20181130134240.GD11747@lunn.ch> References: <20181130075737.8041-1-gerg@kernel.org> <87r2f2pxpa.fsf@miraculix.mork.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: gerg@kernel.org, sean.wang@mediatek.com, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, blogic@openwrt.org, neil@brown.name, =?iso-8859-1?Q?Ren=E9?= van Dorst To: =?iso-8859-1?Q?Bj=F8rn?= Mork Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:55840 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbeLAAwb (ORCPT ); Fri, 30 Nov 2018 19:52:31 -0500 Content-Disposition: inline In-Reply-To: <87r2f2pxpa.fsf@miraculix.mork.no> Sender: netdev-owner@vger.kernel.org List-ID: > > 1. TX packets are not getting an IP header checksum via the normal > > off-loaded checksumming when in DSA mode. I have to switch off > > NETIF_F_IP_CSUM, so the software stack generates the checksum. > > That checksum offloading works ok when not using the 7530 DSA driver. > > Hmm. How do I test this? If there are no IP checksums in the frame, the receiver will generally drop the packet. ethtool -k will show you what features the MAC has in terms of offloading. So if you see NETIF_F_IP_CSUM, you know the MAC should be doing it in hardware. Andrew