Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp94006lqs; Thu, 13 Jun 2024 05:05:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBPby344xvRtx8ri6RPgRf8BmHQF3nc6Szz+NxR+qSyVzPlQsULNF05o7SqqAb47Q7RtI8YE5rFVEmz++or+/CnnCh6g8jPyNAQsdlJg== X-Google-Smtp-Source: AGHT+IHfr3HIpSAOdgQYxDWuHkUgQX7Rl4C8OYCFsuHELDabjC7GweDBJq0oQOInx7IE9jVqWM7b X-Received: by 2002:a50:9557:0:b0:57c:740a:c4e4 with SMTP id 4fb4d7f45d1cf-57ca976ace5mr2934207a12.25.1718280356132; Thu, 13 Jun 2024 05:05:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718280356; cv=pass; d=google.com; s=arc-20160816; b=O6/gmUAqjGXmmBj/joTaU33oam8RTPP/WUAQ9yYLLRs9eswPZCtxlnoPMVcpluD6mF 4+ssGaV+tXBagHW4CXvHahxDSJbV3kkffV2CmnxTzgofWcBeqZ5dap2xK34v9th8gcxS oblYZOJAnxc0tA0l+XbHGixzvp1BzDbbkHdHaHevgw5/ZECfes/jj2Xid2Dsovrp8LjG unW1hsv8jh/yBw9SMEssf16r3KawgACIfAibFGoR7X1Kv928upzoCTODtpHlQHi+uHDe grOtmAyk3+g5d+d9ms1zmrQfoEDe5Zir3KE9YPJKylQD1m4I+SKcN09u10gy98tM1K10 Gn1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZPRwwOATHBboUMQ5qpsDj8UiGy7DXVjepVSWy0R6Kgg=; fh=aa2GzsHU9SGfT10AjlXiqItm5Pfji3m5KsCFUwZkbWI=; b=qbNvy4qbr9Ztj0ZplIugCIodwOgdtxQyaDGwC1YZ1RY332pe7u4kKANAuugnwIczRR pc/0ff3CA4qO1FO3Xu7dX2tzU8eDm37xGRi5xEwQBffvxSrEDn8j2P/SoukBzG7ocxg9 5aW9r2qxA6KCcm504otlo38bhtIWJU6hxNUumZrPQAUiOQ8IDPzjh4gOrdFbIZ5EEmDr KSkqHYX3GW0Tjl3Gr/EtS/hIR4JxnQYKJ0c6FHqMCI3k6XT2sXKUAlFGuIjE9meWXZv+ 9vKRSn4W71QKIYyK5/HpL9m0mZiDSfeGFnmhanZDxXIz75adKkeDKUSUT1ffCKD/2hKC IHLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Foh79bNK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-213161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d608fsi649576a12.24.2024.06.13.05.05.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 05:05:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Foh79bNK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-213161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 441551F20CEF for ; Thu, 13 Jun 2024 12:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C11E146D77; Thu, 13 Jun 2024 12:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Foh79bNK" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A0DC146D5A; Thu, 13 Jun 2024 12:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718280048; cv=none; b=BIJ8WHBuk+WuocoCiV7uJeJlUDKd/uKM9HArryvt3RwgSNdugi4Ya4KChxm9ylvfRrKaZLm6x8PKPCD+7hvF3RVWA8PziMoJOKhqFoijxUMgHqPjITOwDtjRKQcMFM6yAee+7Dkh+z2lZS3ybpg112KbOwXGTvYF1CsenKV1LOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718280048; c=relaxed/simple; bh=VCaWpKvKsf8aeow+BOy3YcYegLQYBswf/quMQlM7fv8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C/GBk5CYe6v9AhM4229fYggfZ1bSAAQCKfrHUUJSUM1NMqFoT3x9IjQ2Ka+/TdLG4jO3RuAF7qt/MAPgZEoUYXFunQqBzbLB3Olj60E+em+Ffqdy3odRKaj0DRU48CovUvwKCfSbZlsBLIKlBDdvrVFjQflh77dQ6h4/oCIltUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Foh79bNK; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a68b41ef3f6so118263666b.1; Thu, 13 Jun 2024 05:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718280044; x=1718884844; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZPRwwOATHBboUMQ5qpsDj8UiGy7DXVjepVSWy0R6Kgg=; b=Foh79bNK7kNRnOsdcwTqmREWyedbK/nJ7hSktP/u5lGtchBNyNP/5+24wmVbU3j5KJ mJjF2us2HF9T2cloAgbd/t10B7hOqmZhhV823tytnQ6EAm21E6iSVk32P5qgbSGhjLv7 t62OaZJy5pVBjYhTFeMcL1rKYzqfZzZySGnwsS314sMJClyZ8oI2PJgFuRL2Js6mXLh0 RaWEWKmPdhYDcHvwIKJvc+E7H2LFShzgdzwDAfPYkE1vxvN/xUMmjTLicr6lO2HOW3kr smJ8NSwkJ96hA6C/d2Ve9hlqv7nypc/YW54EWXMK+o7BUcM3Xw42e/Hd+1JnBn4S0IKP 6ZVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718280044; x=1718884844; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZPRwwOATHBboUMQ5qpsDj8UiGy7DXVjepVSWy0R6Kgg=; b=qncoOCJVU57N3QH+RjkBvlQ3NXBRMjjntq7Q/ObIIGQSycVCRqXT8Vd8xJuNP1JLqj TGRXrMk2O5PuRFNKRZDwGxNNXIPb0pt4u7XoIA9G7LgIZEbPlJcebHyuxJHxzO8o0/IF yz6gkkGR1ZiRvWny0SQEgwwhtFoV5hCr+rE9rm85zH6jCc+ko9Oo9LhFo8CmQzPAB5gH m2u8veIK952I9/489KJTqlAFO+sCIzs6yMccHZxOEK0PyriETFCetwrA1mmrAIhofmez cJGn35pPjnChXooAQTfDxUB21ugbifR47MWN/HA+wxuIDmJVR+wPf89y8lpkMbkStfVt fTzA== X-Forwarded-Encrypted: i=1; AJvYcCWPIvAEKRcV4TgyvXC29xjygua1KkpApPovLlnNrhwJcyjVG+7Ts9Tqqx2JG1R/qLxTcZDeoss8cfpnUJjtxPNIL8W32ORONVEBV5zbECwZJosgYYH4Q08lrKF3PjPeP9E0oSmdMMbz+wfRzHJWURKG0EdU9G9zVQmqh4WTLrDdFQ== X-Gm-Message-State: AOJu0YwXa1PB2DvbKFcYdxqTOyyesvIvCSZYxkmNzFL+NeHt2z8CYsia tLe4mDiAdopO76PoC133ikDwolH1P48sGhbhshD3xUumoAbCGTGH X-Received: by 2002:a17:906:7086:b0:a6f:37b7:52e5 with SMTP id a640c23a62f3a-a6f47d35a2emr286017866b.3.1718280044124; Thu, 13 Jun 2024 05:00:44 -0700 (PDT) Received: from skbuf ([188.25.55.166]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db6201sm64972166b.80.2024.06.13.05.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 05:00:43 -0700 (PDT) Date: Thu, 13 Jun 2024 15:00:40 +0300 From: Vladimir Oltean To: Martin Schiller Cc: martin.blumenstingl@googlemail.com, hauke@hauke-m.de, andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 09/12] net: dsa: lantiq_gswip: Consistently use macros for the mac bridge table Message-ID: <20240613120040.agc2vlurospupqui@skbuf> References: <20240611135434.3180973-1-ms@dev.tdt.de> <20240611135434.3180973-1-ms@dev.tdt.de> <20240611135434.3180973-10-ms@dev.tdt.de> <20240611135434.3180973-10-ms@dev.tdt.de> 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: <20240611135434.3180973-10-ms@dev.tdt.de> <20240611135434.3180973-10-ms@dev.tdt.de> On Tue, Jun 11, 2024 at 03:54:31PM +0200, Martin Schiller wrote: > From: Martin Blumenstingl > > Only bits [5:0] in mac_bridge.key[3] are reserved for the FID. > Also, for dynamic (learned) entries, bits [7:4] in mac_bridge.val[0] > represents the port. > > Introduce new macros GSWIP_TABLE_MAC_BRIDGE_KEY3_FID and > GSWIP_TABLE_MAC_BRIDGE_VAL0_PORT macro and use it throughout the driver. > Also rename and update GSWIP_TABLE_MAC_BRIDGE_VAL1_STATIC to use the > BIT() macro. This makes the driver code easier to understand. > > Signed-off-by: Martin Blumenstingl > Signed-off-by: Martin Schiller > Acked-by: Hauke Mehrtens > --- Reviewed-by: Vladimir Oltean