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 939D964A8D; Wed, 13 May 2026 01:37:18 +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=1778636238; cv=none; b=TnbsutfSoiNZMtFWMbv6aT9DzyryivJVKE0zibQCFQ1HcQb0ZzoXHoo+MZO0dHMJcfCI66akE2/L0nmpg8jsFBmDXTLUHqmWZWmGd2qMxVoXOTqL5SRHzRDMTtZSeN+qyqBc/XLU7guyP1wVI14l06L+wWDl667Ddp6U4LzIvpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778636238; c=relaxed/simple; bh=6tYJPE2zPD+YaVCNcDA2oG+172L+n5H4t2bByGflb2A=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UtiY7d3THYv7DoNInuN447GfxzthECuTgJddpQAQRyCrRLH7PeRaahrD5uzjdL4+6lu/TruEipEbRC+AU8p8h3r0gUNi34bdAWwKplu+GFFjofHI3G/i4HTsWozTQlVUDuFllRvoHEgDSRDSO8C9IXU7MVEdbMEemLvIR50xfzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DqLSSLlD; 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="DqLSSLlD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56D9AC2BCB0; Wed, 13 May 2026 01:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778636237; bh=6tYJPE2zPD+YaVCNcDA2oG+172L+n5H4t2bByGflb2A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DqLSSLlDNLRuWTLPEapJABxAnAi+tjDpdsfqQNVTXcx5dyTKQ3atxvSZC76moiM01 F0EBCWwkLTG4+SAq7wvHsd28m2ENS6SaqdvfSxooQLYVN3VYmPbz37btsJ6lHzST3K znp4rLG56mg/VKC6FUEBNpVMrc5NdCPeqy1TeyKUBW0QCYrBdv9coMV9lV0ZW6AVHi u6lGqvboGYVhjy6IinNIRdCWRZE/To4W2Kk04dHw4PG87m+Cqz1gm3Soup8GHBMhJM d3JBjBR2dOOgj6ZEOZaGnlbRzxeDOEk0QYHbJMFRGTqyEYmZY85lJGNiyYNQ0pR0PN 7wWS8QBFICCzA== Date: Tue, 12 May 2026 18:37:16 -0700 From: Jakub Kicinski To: Michael Dege Cc: Yoshihiro Shimoda , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Niklas =?UTF-8?B?U8O2ZGVybHVuZA==?= , Paul Barker , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v4 05/13] net: renesas: rswitch: add exception path for packets with unknown dst MAC Message-ID: <20260512183716.482f3f90@kernel.org> In-Reply-To: <20260511-rswitch_add_vlans-v4-5-a5a225f8faae@renesas.com> References: <20260511-rswitch_add_vlans-v4-0-a5a225f8faae@renesas.com> <20260511-rswitch_add_vlans-v4-5-a5a225f8faae@renesas.com> 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-Transfer-Encoding: 7bit On Mon, 11 May 2026 10:52:08 +0200 Michael Dege wrote: > Packets with unknown MAC address cannot be handled by the HW forwarding. > These need to be forwarded, via an exception path, to the network driver. > > Creates a queue for the exeption path. Packets received with unknown > src/dst address need to be passed to the CPU. The received packet does not > have the correct source port information, this is derived from the > descriptor and added to the new queue. The received packet is added to the > new queue and sent to the CPU for MAC learning. The CPU will broadcast the > received packet, to all ports. This is how the HW learns the new MAC > address. I sent the AI reviews out just in case, main reason I'm dropping this from pw is the new sparse build warning here: drivers/net/ethernet/renesas/rswitch_main.c:1015:23: warning: cast to restricted __le64 drivers/net/ethernet/renesas/rswitch_main.c:1015:23: warning: restricted __le64 degrades to integer drivers/net/ethernet/renesas/rswitch_main.c:1015:23: warning: restricted __le64 degrades to integer