From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 4A623486BB4 for ; Fri, 2 Oct 2026 13:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790946088; cv=none; b=V18nLi8KI5coEzfzytcUWs+VYHoRhDYQ3kc1KOMNhLzXMuxPYhiQLC5CTgt0CTqU8j7pUhSF7uIgnfeXUvEjLYGCiztxRydhz3cuFLY5SAdyB0hX/qaC0TU5q/OZP7LB2pY3SdoP0SOUqXk9wOgJ7qcS1yz2GdM4tsQoqY5aGag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790946088; c=relaxed/simple; bh=VMgY1P+jq0WbBXIlteABApp+SfiYvc8Sqm5dpy9M9Hs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=La0uFCrK4ya3ms+IGUJxwvombrCe6kw95UHtTaNUeijbNcHDobodzqAKnSeILh/DCt3EtT5W/HuqCv5p8R18t7irqrZOW0RoYihMmjkMeoNOJt89QFlL69evV01a9lwls+WG9nHagpFUzwdCM4wi5bAsS2CIkyBEmdwH/PvBq3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=a6DPH57W; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UNNc7h7V; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="a6DPH57W"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UNNc7h7V" From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1790946082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LFlP7qcGF1jPukuNoCiG+brouPMOaIQQIzf+Iy2+3SY=; b=a6DPH57WK8PJIwOJxAwCv2TshJFoWjSryB5h616kDVNNdxPXiOTHpn37t6r+hlOi5psny3 Rg31lm3JiS3GTn/vFu1M+EDkEgPb4Qk+8+othJeMxqcDYRDmKtnMUgAeq+1WR2EiuXHGwJ 0Rog52QKB/aILom2n4RTMBrjyydGMQz6YXUyIf7q6Z7+iVW6PkZBkmdPBlANay9Z7Mj3gq +vHv5fVUtQ1tjgSyKXjI0RY6Rowcg/rxtVTHQiPVsJNpIbZY76p8bSYaUrCFt38vQmElmk uUfGHXNM7Jwo3MKnTDqd+L6eN3Bbz0ZjGPGtJr30Z/D2+tBSmCiQtIVoMAe8fw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1790946082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LFlP7qcGF1jPukuNoCiG+brouPMOaIQQIzf+Iy2+3SY=; b=UNNc7h7VGVaMlcojinldqAEt1P8KBI2n8JZFX/6h0nLV8rtjLC3tbd85erL1uxCQM4N2cM NMtCSMiJJPmi4QBQ== To: netdev@vger.kernel.org Cc: Sebastian Andrzej Siewior , "(JC), Jayachandran" , Andrew Lunn , Chintan Vankar , Danish Anwar , Daolin Qiu , "David S. Miller" , Eric Dumazet , Felix Maurer , Jakub Kicinski , Neelima Muralidharan , Paolo Abeni , Praneeth Bajjuri , Pratheesh Gangadhar TK , Richard Cochran , Simon Horman , Vignesh Raghavendra , Willem de Bruijn Subject: [PATCH net-next v8 6/8] hsr: Assign a socket for cloned skbs Date: Fri, 2 Oct 2026 15:01:12 +0200 Message-ID: <20261002-hsr_ptp-v8-6-60dabc07e554@linutronix.de> In-Reply-To: <20261002-hsr_ptp-v8-0-60dabc07e554@linutronix.de> References: <20261002-hsr_ptp-v8-0-60dabc07e554@linutronix.de> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The cloned skb does not have a socket information recorded of the original skb. The original skb is never submitted. This means the requested timestamp information gets lost. Assign the socket of the original skb to the clone so the timestamp is forwarded to the user. Signed-off-by: Sebastian Andrzej Siewior --- net/hsr/hsr_forward.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c index 2ce31b1da7b35..eb696e33bd739 100644 --- a/net/hsr/hsr_forward.c +++ b/net/hsr/hsr_forward.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "hsr_main.h" #include "hsr_framereg.h" =20 @@ -348,6 +349,9 @@ struct sk_buff *hsr_create_tagged_frame(struct hsr_fram= e_info *frame, if (!skb) return NULL; =20 + if (frame->req_tx_port !=3D HSR_PT_NONE && frame->skb_std->sk) + skb_set_owner_w(skb, frame->skb_std->sk); + if (port->dev->features & NETIF_F_HW_HSR_TAG_INS) return skb; =20 @@ -581,6 +585,8 @@ static void hsr_forward_do(struct hsr_frame_info *frame) */ if (frame->has_foreign_header && frame->skb_std) { skb =3D skb_clone(frame->skb_std, GFP_ATOMIC); + if (skb && frame->skb_std->sk) + skb_set_owner_w(skb, frame->skb_std->sk); goto inject_into_stack; } =20 --=20 2.55.0