Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp227780rbe; Wed, 28 Feb 2024 19:06:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUe0YaJ+MfZPtsOCCCiK3MaY3LQ37VlocAJIGLOMKkRVlJXhy9cKldSaWm9s6mWBGTh1ELysfc8hyOaNHY4qJsGCQ2V6mkdfhNNzX3gzg== X-Google-Smtp-Source: AGHT+IEozBv09ZdOtbyPHQbr7Eo2hO7e8Pjj6vBJNClsFctYiYjUswaJ2xtdv0i7dWjLhYmMkyxm X-Received: by 2002:a17:90a:b011:b0:29a:fc3a:3b26 with SMTP id x17-20020a17090ab01100b0029afc3a3b26mr1109171pjq.2.1709176009911; Wed, 28 Feb 2024 19:06:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709176009; cv=pass; d=google.com; s=arc-20160816; b=dtpzjbR0pwnJN241VUeLAF6aOizP32k9pO1FG2wjck0gjKYWlj6Ar/lAEqeaXp7SIG 5ILfVshcVL9gCswk2SVOJ+2c989imYO/9XFxd9wUAqKH4CiGjkuEqnyFiELbaXeKUUnF REiuntpEaSX2Lu3TRssdNLQiGnhE5Bd6iKvPqfLGoZw++YCEoMGvkfvpdApGgznLYkwa CVNjLWTZqQhSCMqykJju6jzoix86wZ3txBlBvSlw3s8THIU8yZRsOCEbDSwCAYo7zOL3 8peuEGriS7BX1bPy4kdodfn+1HyxeHNvgdoWZabXpSpeP0ALsn/NSZRbA8WGtGUgqQvg oRzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=UWuYF1zX+Ht0lPV+8iqL2NPLxTc4uLQckEYNbea20LE=; fh=lDH8ALY2lptYPuEuqy/dwZrbzdtWs0tlwKMXLN7GVCc=; b=L8HKPiw7R5NnBQ0qO5t5ERe25n4UNEHnotUM3Xb3Ifs8rhSaE6Nd22kUmH5r3fWn5t A/wYuEymNfeC1uj8a7b0Jwmx7Bmfl526z4g69xrhLru1QEsjwftAmi/tAjF9SEudDyeK p9czr0v796HI1Zg6WUEsS4QMM5TGBsMb+8fPT2jlqxCbsdiH3U6R0nVWDwkrut3UYNOn kwvuAJuzOwdlt2NNhXWxWE4Yo0FfjCm6VNC6we+ho1BxN8fXMJomcAHOofEZgZ9EvFbH wUQzghrFMIX+rH52WWHl1VSzpZCYaV3kgKpDrA3f8Rp7DnMrjPGy+r1+XeegSAsRQqDy n1Yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sJSfyDKz; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-86078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j21-20020a17090a841500b0029a5eba078asi2569404pjn.142.2024.02.28.19.06.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 19:06:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86078-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=@linux.dev header.s=key1 header.b=sJSfyDKz; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-86078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 80E5D2837D9 for ; Thu, 29 Feb 2024 03:06:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76A8D364D8; Thu, 29 Feb 2024 03:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="sJSfyDKz" Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 BCAF53612E for ; Thu, 29 Feb 2024 03:06:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709175999; cv=none; b=nzrtViW/Ra5K2c0sIlnKoEKadJ2uBQaDyLgt472L22cZAypLlTwjpB/skK1JzhbA/+YKaQku1md/kDKtp7IHg3IWfIwKA8AMk6kfrAIxAqacJ1usoC11dyNIw96hRgSfP4/0nVOee605UpjydL4vWvvhrNxjI4gI7kQ3S4B562c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709175999; c=relaxed/simple; bh=ty1kMhuT2FR/GBsEDJ7Eklj35xsmQK65l81VuCcmH5o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YcDFd+eiAj2B9TRawTlS4DU05/igrRsGWLqvmS0SjeRIvITXDAXM4Yya50prgheg1cBdcL9Ib8sK1JBXnZ+/MC7HaZ1H869JtwUfFtLF5yokeyXQubHZwCMca905XT4CL6E6z6RKtUakkTD2uF1G8GVdVkVrHfSwxzXv5aN8H2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=sJSfyDKz; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709175995; 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=UWuYF1zX+Ht0lPV+8iqL2NPLxTc4uLQckEYNbea20LE=; b=sJSfyDKzSxitsSg35CsI8l673N7isxZ8JjGczFlQqtFwQifs68QpMOjrQ6FJ/yyr6fUfF0 wDEDzjyDqWJ+WaLujLwfFspjQfQh/JlpvNRwllWFNV6p/gh5L65dxnmubwEz3/XhmWgtee KUqHiUKWyBz8Jm0CpN16sTMimqNhFLs= Date: Wed, 28 Feb 2024 19:06:24 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next v2] net: Modify mono_delivery_time with clockid_delivery_time Content-Language: en-US To: Willem de Bruijn , Abhishek Chauhan Cc: kernel@quicinc.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Martin KaFai Lau References: <20240228011219.1119105-1-quic_abchauha@quicinc.com> <65df56f6ba002_7162829435@willemb.c.googlers.com.notmuch> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <65df56f6ba002_7162829435@willemb.c.googlers.com.notmuch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2/28/24 7:53 AM, Willem de Bruijn wrote: > Sidenote: with sk_clockid, FQ could detect when skb->tstamp is not > set in monotonic (i.e., set by SO_TXTIME) and drop the packet or > ignore the embedded timestamp, warn, etc. Thanks for cc-ing me. Sorry for the late reply. I just catch up to this thread and the v1. I think it is needed to detect if skb->tstamp is monotonic or not in fq. The container (with the veth setup) may use sch_etf while the host usually uses fq at the physical NIC and expects monotonic skb->tstamp. During forward (e.g. by bpf_redirect / ip[6]_forward from a veth to a physical NIC), skb_clear_tstamp() only forwards the monotonic skb->tstamp now. While sch_etf does check sk_clockid first before using skb->tstamp, fq does not check that now. or fq_packet_beyond_horizon() is enough to catch this clock discrepancy?