From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Ungerer Subject: Re: [PATCH 0/3]: net: dsa: mt7530: support MT7530 in the MT7621 SoC Date: Fri, 30 Nov 2018 23:45:13 +1000 Message-ID: <50870d29-c13f-3d3f-31f1-e95f6f7daeaf@kernel.org> References: <20181130075737.8041-1-gerg@kernel.org> <20181130133751.GC11747@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: sean.wang@mediatek.com, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, blogic@openwrt.org, neil@brown.name To: Andrew Lunn Return-path: Received: from icp-osb-irony-out6.external.iinet.net.au ([203.59.1.106]:50192 "EHLO icp-osb-irony-out6.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726398AbeLAAyj (ORCPT ); Fri, 30 Nov 2018 19:54:39 -0500 In-Reply-To: <20181130133751.GC11747@lunn.ch> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Hi Andrew, On 30/11/18 11:37 pm, Andrew Lunn wrote: >> 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. > > With some vendors MAC hardware, there is a field in the descriptor to > indicate how big a VLAN tag the frame has. The hardware can then use > this information to skip over the VLAN tags to find the IP header, and > then perform checksuming. You might be able to re-use that, consider > the DSA header as part of the VLAN header. > > Other vendors, there is no way i've found to get hadware offload of > checksumming working. Thanks for the tips, I will try out the master mtu change too. Regards Greg