From nobody Wed Apr 1 22:15:19 2026 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 DBB1D223328; Wed, 1 Apr 2026 13:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775050502; cv=none; b=quTrFWQQtDHrB3JczfmJKF00G0jPJDLZgYLZ55TZ1dXm/oZFTdOcB9MntH2Yf2Lf1dqo4UemnSdA33Gvx3z4h15tz9GqSukijIAD/yO9q6f1rZHRah3qrdNKN4dQgFxya+E/Vyh0KZjb70QxKkfLqXEGyNst2mnjGegUw4M0HaM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775050502; c=relaxed/simple; bh=H3Gw14nM510sXuAGsvRumnG/EGCrXZ7NnSy7MfOQXSY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tQYQp6xSGlN+XJgNYf3TtL+7LE9Q7Egcu8d4hqI2sbvBH0JPNiW2LfIfdYQnoafobUldVn3uQe1WFh+uu2GxTMm8n9C6wiZ4mWbh5b4fKDGTxtbO6Fa0jrNxoomDs0ZyjCu8Pzai+fJ50Inuv35NXx3wXDVWV9PpY64928LG8cY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1w7vih-000000001gd-44IX; Wed, 01 Apr 2026 13:34:56 +0000 Date: Wed, 1 Apr 2026 14:34:52 +0100 From: Daniel Golle To: Daniel Golle , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Yang , Simon Horman , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Wunderlich , Chad Monroe , Cezary Wilmanski , Liang Xu , "Benny (Ying-Tsan) Weng" , Jose Maria Verdu Munoz , Avinash Jayaraman , John Crispin Subject: [PATCH net-next v9 3/4] dsa: tag_mxl862xx: set dsa_default_offload_fwd_mark() Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MxL862xx offloads bridge forwarding in hardware, so set dsa_default_offload_fwd_mark() to avoid duplicate forwarding of packets of (eg. flooded) frames arriving at the CPU port. Link-local frames are directly trapped to the CPU port only, so don't set dsa_default_offload_fwd_mark() on those. Signed-off-by: Daniel Golle --- v9: no changes v8: no changes v7: no changes v6: no changes v5: move link-local check before dsa_strip_etype_header() v4: no changes v3: no changes v2: don't set dsa_default_offload_fwd_mark() on link-local frames --- net/dsa/tag_mxl862xx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/dsa/tag_mxl862xx.c b/net/dsa/tag_mxl862xx.c index 01f2158682718..8daefeb8d49df 100644 --- a/net/dsa/tag_mxl862xx.c +++ b/net/dsa/tag_mxl862xx.c @@ -86,6 +86,9 @@ static struct sk_buff *mxl862_tag_rcv(struct sk_buff *skb, return NULL; } =20 + if (likely(!is_link_local_ether_addr(eth_hdr(skb)->h_dest))) + dsa_default_offload_fwd_mark(skb); + /* remove the MxL862xx special tag between the MAC addresses and the * current ethertype field. */ --=20 2.53.0