From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78ECB1CD07; Tue, 16 Jan 2024 18:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705430199; cv=none; b=sUUxGcl+6/0Z1ynbdduwulJ0p3PvO32qt0dWaJu+k995J91zkCgF5Kf6xp9wHZN1IcF7sngvPNIvMeFOmgkFTRBVCR5OhGklxUUBHq10l/8wFQIabvb0onfF/VrqESkfEhZ6AX4BLGkuO5ielENKRSKBj/mvHYZQj/LSDTIkyoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705430199; c=relaxed/simple; bh=I2G0ZiEcqMEXhbfeorisjs31sXqvnsEWf2BYWizY+SI=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; b=Y+oI/zdP8MilfCKEBZAXedesdszLisVf8YSxUsMQxa9WHE5Ksj/jxy6Okn++Yb4//dL3p1358dQu4QPORmCqe0hhXGO9ddOzZNlvWTuyirAXwO0R7Obi+pZHIClh0b2VDy7tCImPURXgdX5MJEcLJLJ+ITFoeorRw5c1WDrwSmw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=goRIDPSI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="goRIDPSI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57C84C433C7; Tue, 16 Jan 2024 18:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705430199; bh=I2G0ZiEcqMEXhbfeorisjs31sXqvnsEWf2BYWizY+SI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=goRIDPSIwbL/zs316N/BZQYhs5sVT//+8hgnCuelHawmR8qYlsS2SInXbrd48MgNs cjrcHQtJWIj4G3ccbeHo0Kgu7FhB8ko45BPPt9Dsa11HQhaNmFEZ99hcRYFecSO75G fU2tTSqcAhrI3eT1sphnEHqRmYuD6odsyo66GY5qsF97Fb1rjDkHTdIap+EvceJh45 dzJXD1spdNmVxuTzBONGcxpPibsWv870ceQAwOAvYp8PCT1SQRvF2jzWOLksV4mRMX oZPbHyy2+xLvRBqiwAIMIKqOn+hcz4eB1xyP2MWh5Lro0nZe0ywlmmm2auU0OE/qkN 6crfKl5Hystug== Date: Tue, 16 Jan 2024 10:36:37 -0800 From: Jakub Kicinski To: Romain Gantois Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Paolo Abeni , Maxime Coquelin , Miquel Raynal , Maxime Chevallier , Sylvain Girard , Pascal EBERHARD , Richard Tresidder , Linus Walleij , Vladimir Oltean , Andrew Lunn , Thomas Petazzoni , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Vladimir Oltean Subject: Re: [PATCH net v5] net: stmmac: Prevent DSA tags from breaking COE Message-ID: <20240116103637.794811a6@kernel.org> In-Reply-To: References: <20240111-prevent_dsa_tags-v5-1-63e795a4d129@bootlin.com> <20240112181327.505b424e@kernel.org> <20240116072300.3a6e0dbe@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 16 Jan 2024 17:18:30 +0100 (CET) Romain Gantois wrote: > > which makes it sound like bit 5 will not be set for a Ethernet II frame > > with unsupported IP payload, or not an IP frame. Does the bit mean other > > things in different descriptor formats? > > The description of this bit in my datasheet is: > > ``` > b5 FT Frame Type > When set, this bit indicates that the Receive Frame is an Ethernet-type frame > (the Length/Type field is greater than or equal to 1,536). When this bit is > reset, it indicates that the received frame is an IEEE 802.3 frame. This bit is > not valid for Runt frames less than 14 bytes > ``` > > There is no mention of a more subtle check to detect non-IP Ethernet II frames. > I ran some tests on my hardware and EDSA-tagged packets consistently come in > with status 0b100, so the MAC sets the frame type bit even for frames that don't > have an IP ethertype. Boo, who designed this thing :( v6 is good to go in then, thank you for investigating and testing!