From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 D29523B892D; Fri, 3 Apr 2026 14:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775226001; cv=none; b=lg39bBFi+xgfPULBOKMntNTeFfa6MP4sF6hTu8I80EBb2VluSv99yJQYSMzeqvtSrJSRu0+3uDuTWDj57mwqSd6wsYXMA6vMrwr5sLwpGib5y8N4ukaRrEbiB4xiP0OF1ybYsdKI7syeVlqJq+cxaMnRhxwb6W7AHfK7KXgcciU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775226001; c=relaxed/simple; bh=tGTBweo9NFXmnODGZU94m8xzlmOFALtngsCyYmiJ728=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j8h0j4FXpko3XZjDU0CPVzovqNbNuDYrLL15Ag1GzTEJsX1nyb9khcoQtBGBITvHYvvooXsbjsE6OvvuBn3T3yuqbDZxFRe0cE2UVzyq+3t9BqxjcdTiYqwYfCiaaKYBXAJnkNvuey3oHlCGuqXb/QyNsjS65TBk/g6bniB6/no= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=vNi6FMwf; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="vNi6FMwf" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=l1hC3uV69przVxSDp/HvbjLA55jCweeBC6cMLyqbk6Q=; b=vNi6FMwfvFlmufDx9S5tBA0HLU ru/MYvZmOx4jxpuGgdQJ2VVk3uxkpstSSlDdtoExXinNI/VSoEwF6nsRPyn7SlXn9DF+SgpQgQyHC zQoJlWF0h3OJBRmlOWPDu5gTqgsbp5niE+2trgBhuONQixqTat/6UU4zTIhLE5YhF4Fk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1w8fN9-00EfpT-7Z; Fri, 03 Apr 2026 16:19:43 +0200 Date: Fri, 3 Apr 2026 16:19:43 +0200 From: Andrew Lunn To: David Yang Cc: netdev@vger.kernel.org, Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 3/4] net: dsa: yt921x: Add port police support Message-ID: <308c4474-3da3-41bf-af29-3a400232e029@lunn.ch> References: <20260402223437.109097-1-mmyangfl@gmail.com> <20260402223437.109097-4-mmyangfl@gmail.com> <654b51cd-fc06-4dd2-9a6e-421d7333f905@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > Does it unnecessarily depend on __int128? Otherwise it's good. Ah, it seems to be a 64 bit architecture only thing. Shame, because it would make this code easier to understand. For these u96 values, the masks i looked at would fit into a u64. Are there any fields which cross from bits < 64 to > 64? Could you represent it as a u64+u32? Andrew