Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp385239lqb; Thu, 14 Mar 2024 14:14:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVSAWeYPVdTpZ6qt4/g0OfnyGGRRauLRGPNy1KrZSPcFNS/QfRYP5Qb1w6m15nPOknLAcEJ8cdkHV5ZNU8uvUniwDZBmYCLfJo6IVPcQ== X-Google-Smtp-Source: AGHT+IFG/S09kXCnTWsc5e8aaDenGTNcrzsJdiKwteQg8TAvkY5lAUnJUqs65MvYYGxwG+kbju+z X-Received: by 2002:a17:902:b70b:b0:1dc:fc84:edaa with SMTP id d11-20020a170902b70b00b001dcfc84edaamr2861848pls.29.1710450869605; Thu, 14 Mar 2024 14:14:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710450869; cv=pass; d=google.com; s=arc-20160816; b=BZIaxGSxSOMwAtPgcSMgjDNx1mdcGzzLKGBALOXDiu3bgmFbBYrVIpFDOR/pQLvJ3k zeoTdYGB/n9PPP6HqMhtcSJncxpsxAf/miQSAMiMB/NwZ6DLc1u5cOvB/DU7qGwsa6bf 5KzdRvn8kfOATU2f5CuumrxD7IXg6C35iU+2QIiodG9pPWUVs5tNH6sdzeK6AF38yAnG J2kLXd7RO1ppkQ5NtoUSTYtnK9Zy2Onjdg31VAyxSWHofaSnJLMHXoFXPjEa7cpXho31 e9MoAJzwWg0iV+gZx590v+E3kdR4MG8v4rTZhXoQfrGhRyg3vODlx7BQ7HGsbRoOrrVK R+2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=qJVyiIR9i0hx/lkhDbRUXWeAnQ5APdwZD/eQGeT1viQ=; fh=+azgu+dIdl/I/GfPOyO1ra1vEFXwLBTzQ5mdQ8sfi4k=; b=AT2j01jFlsl/TlWP1SyYhlxQ8g9ZBMXI0ZBQkjpI6Ddu6YQMklaBm1Sxeems6IC/eL xHW1YLvG/JpO1cWPcGIYtlveUGNIyZoRylzJPdtSMuq0+j56uiIWsSzzCDdr9cbfDGQ5 zOPe14fcFxDkiGLKKahb1+9Cuv80LmNzAOf6tc0dwDYl81QbkMIkGVzSE7vxjjF1+Nra vFrcURKC7opNmcfj12paXg/VZk7M3LVcPkfDGpwJxpSExmrRWe+u1OBr3v+rR1RCwais 7wk3fo/B2UM5KsTWP7/mnuevt817okkKkM445UBhV33UVco2SvTObL+wcdAH6R4QorQ4 maNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b="O/Sud1ey"; arc=pass (i=1 spf=pass spfdomain=iogearbox.net dkim=pass dkdomain=iogearbox.net dmarc=pass fromdomain=iogearbox.net); spf=pass (google.com: domain of linux-kernel+bounces-103796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t14-20020a17090340ce00b001dd8b0704e0si2217789pld.395.2024.03.14.14.14.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 14:14:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b="O/Sud1ey"; arc=pass (i=1 spf=pass spfdomain=iogearbox.net dkim=pass dkdomain=iogearbox.net dmarc=pass fromdomain=iogearbox.net); spf=pass (google.com: domain of linux-kernel+bounces-103796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 489EF282991 for ; Thu, 14 Mar 2024 21:14:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7EDA768E5; Thu, 14 Mar 2024 21:14:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iogearbox.net header.i=@iogearbox.net header.b="O/Sud1ey" Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) (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 7450A5C61C; Thu, 14 Mar 2024 21:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.133.104.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710450858; cv=none; b=Ta19hV3z16WiWdbwPDTsO78PvgX/L+sMIZdLtebCFfzuqOJFvqt3qEYXsQY+3RZjbQ6eOzMhHb7QePiU3hsT+GCvb42fBPnvymmIYkGmyRByHyS7V2YXWUqzRivDdDGf0gieKI6mwoCk4fGjnEg/MuaIIb4qTrMUd+/t+scSA3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710450858; c=relaxed/simple; bh=NqUxaKorBKFrsVCBM5oPO2MgNVrkppgV+OylEpqNesY=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=kFVn9UmXFaGN4UKfDChWeqHCJBJ3KjERBx+WmEhNoXfEMT8zfuHN2+m55VBNl3fpGC8AvbttYEGuGbaOin+xwpjmBkGFxGyML0Hwglt88OVWKYB8m5q6uKAWygpKszFMJwprmiPfBOFcM2L1P5rCmhNd8CFG7nBJXGUSqDXKAQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net; spf=pass smtp.mailfrom=iogearbox.net; dkim=pass (2048-bit key) header.d=iogearbox.net header.i=@iogearbox.net header.b=O/Sud1ey; arc=none smtp.client-ip=213.133.104.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iogearbox.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=qJVyiIR9i0hx/lkhDbRUXWeAnQ5APdwZD/eQGeT1viQ=; b=O/Sud1eyEbLu66iFmKrtf07UqF v1626CR9sSLWkneoww9pzJ/DzC/Gu/xXEn9dSFpuGUdC0zEQIF8quK42+wNY47OanmEzxv9xz22za MhS+i45LFKl0E88MjuPFPcesBRjHST2erj/3+sXJP9lQjfZ/2cA302fZKGKKPa53EiLUhJxHZ8mIo ZFsLyAGd0LwEC5M69YguTWQ0Q3pPvbFjlH40Jp2zpkULnS6jAk8xp4mqiGuCWdrG5UsSsEz0XgJxC dK9edqJGpljuVnTSuVdevhDB23pAivJCOwo28PqPVg9+9LQ5bEANyQJ9MUqvD3B7DqJDX5J5QygIw G3SBtBVQ==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rksOp-000N7z-Ts; Thu, 14 Mar 2024 22:14:03 +0100 Received: from [178.197.249.11] (helo=linux.home) by sslproxy02.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rksOo-00D9Ea-2y; Thu, 14 Mar 2024 22:14:02 +0100 Subject: Re: [PATCH net-next v3] Revert "net: Re-use and set mono_delivery_time bit for userspace tstamp packets" To: Abhishek Chauhan , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Willem de Bruijn , Martin KaFai Lau , Martin KaFai Lau Cc: kernel@quicinc.com, bpf@vger.kernel.org References: <20240314192404.1867189-1-quic_abchauha@quicinc.com> From: Daniel Borkmann Message-ID: <695f3ef3-7b30-7806-60d0-bd3d27130361@iogearbox.net> Date: Thu, 14 Mar 2024 22:14:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240314192404.1867189-1-quic_abchauha@quicinc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.10/27214/Thu Mar 14 09:25:48 2024) On 3/14/24 8:24 PM, Abhishek Chauhan wrote: > This reverts commit 885c36e59f46375c138de18ff1692f18eff67b7f. > > The patch currently broke the bpf selftest test_tc_dtime because > uapi field __sk_buff->tstamp_type depends on skb->mono_delivery_time which > does not necessarily mean mono with the original fix as the bit was re-used > for userspace timestamp as well to avoid tstamp reset in the forwarding > path. To solve this we need to keep mono_delivery_time as is and > introduce another bit called user_delivery_time and fall back to the > initial proposal of setting the user_delivery_time bit based on > sk_clockid set from userspace. > > Fixes: 885c36e59f46 ("net: Re-use and set mono_delivery_time bit for userspace tstamp packets") > Link: https://lore.kernel.org/netdev/bc037db4-58bb-4861-ac31-a361a93841d3@linux.dev/ > Signed-off-by: Abhishek Chauhan [ Side note: target tree for this fix is net not net-next, the follow-up work would be net-next then. ] Acked-by: Daniel Borkmann