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 C83C94A3D47 for ; Wed, 23 Sep 2026 12:14: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=1790165673; cv=none; b=cvjv+DuxNdq0qaRfCBJFhT04nxsc0yVfKhS9Vs5Xnr6cxCXjGdvKOBY0/L8lTs1OgW/GX//JLn81OZXd9PFMuyCFJeoH3vHwbig+gt3v5yA9dLP4TzjsFf96vChR7cTHTuDdC+7BlePQLZZptcy2m55mxP4zfWZvngvfiPkdkgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790165673; c=relaxed/simple; bh=72zWoiywhAPF5VvyQIwzWReM6v+T9ftSMJ0EZW1nqQI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XyRRXfndkUruN9VMS2YNZoVpM9ArAUKMEZ085CkrWGeo6HcFpfWYlWSrWYRG6S6wxwCTcI1KfLkKstDJmVDLptw05T0uZxkME1vv98daMiF5JLccOq+lrM9mGh68rCXH255cvx1q46G7Ndayc03aii95Lue8xVCY1hTnBaqOFeo= 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=2o/9jwnF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=g0mEIRme; 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="2o/9jwnF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="g0mEIRme" From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1790165661; 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=cII6rOnxlA2nxshMEZUN1QNZMB7X/bYPVehxGKzrhEo=; b=2o/9jwnFbNGh8H57RVtBAhkxFkvPBhzgx/7w2dBkGIaTprxXAxaTDByGLEh8+hdSDLGGeK LhnZDXd8z078Z5cSGgtL2ay7N/UEoQfEa7fZ98pkS15o86iR/lWQ5H3f8Y55cbYVuqhNDC XYjcpVjHM1tJ7pqMcctfb1nPA58IQFY9KYlt4eE6962GoxSHHUV7AATGjiaIXmhUM8lz2C psOjUSpIaEy90Dv31MRm4S/IYu05iheCblHMRMfRCM64tKhtjEWX2XW3X9DBveCSGredAf WhyjXPss752uLAyPM6knIFpxQ52fuaNCE3vK0fgW92tOwO3SPteK01lvpIh9Iw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1790165661; 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=cII6rOnxlA2nxshMEZUN1QNZMB7X/bYPVehxGKzrhEo=; b=g0mEIRmeUE7DOAD+XlBQsov9FmavqDYWdKzzsRo13P89oyR1P5v0anLNeKQAzovLjZT7p0 TU4z98HgwaZYUwDw== 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 v6 6/8] hsr: Assign a socket for cloned skbs Date: Wed, 23 Sep 2026 14:14:07 +0200 Message-ID: <20260923-hsr_ptp-v6-6-6ea07b3fb8a8@linutronix.de> In-Reply-To: <20260923-hsr_ptp-v6-0-6ea07b3fb8a8@linutronix.de> References: <20260923-hsr_ptp-v6-0-6ea07b3fb8a8@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 0f708ef598ded..f2e1e7ab9c9e6 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 @@ -584,6 +588,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