From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 A1EF4244692 for ; Sat, 24 May 2025 21:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748123976; cv=none; b=thSx4irUVNQnzw4ECOBxVD45ctiGl1lmhXp9rbQphcWDra2fDCBv0ukORKquXRAAnJqg46ydlelxVnvgTNgdhtvcMJNvR9M2xtyYDiq9+wrXR9X+iEMziSzYyz+BEcz31/WOGH6s4OBlCKHIhE2K9mbGoz01haIpbETdd8JfHx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748123976; c=relaxed/simple; bh=QprXBk0rj2kYUMPGVy8G0AZB6RTubNigaHYE0IxY3t4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gubvreFCyMvOiDpLt7DrikIXz5x90j832OkKusSho+o/dBHMxsci4lVzKyX7oJeupjTbr4k7FwVZEVB4jG2DBCNh7bSZJ01PsJNlnDD2d7A8ZFajhDaq3a5RhEvleG/BHJN2+YArsNP2Mwis7qq8F5o7oSltkCflNwkozy3SM6s= 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=YylkEkDr; arc=none smtp.client-ip=91.218.175.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YylkEkDr" Message-ID: <3ca312c2-6749-45a8-b971-2cd0a1a0781a@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1748123972; 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=MEtYIWCVhDrjslbC4nxHIooXXCWroqZxwKZTkbsJhGk=; b=YylkEkDriN38aO4t0bPeu+FI67hMmXuW/Lri5urUwYECRpDs95q5qVxD5oFDaKkRU/mK4E ZbaAw4krBfJFdXZbewBOBYzqV3T208OLTOU4tnkWK+Sf5SgO4e6bm690dnpi5Q3CQ1twfp XTYcb4GOMGjUJJHH0TflptfEY8xFH2I= Date: Sat, 24 May 2025 22:59:28 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next v3 6/8] gve: Add rx hardware timestamp expansion To: Harshitha Ramamurthy , netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, jeroendb@google.com, andrew+netdev@lunn.ch, willemb@google.com, ziweixiao@google.com, pkaligineedi@google.com, yyd@google.com, joshwash@google.com, shailend@google.com, linux@treblig.org, thostet@google.com, jfraker@google.com, richardcochran@gmail.com, jdamato@fastly.com, horms@kernel.org, linux-kernel@vger.kernel.org References: <20250522235737.1925605-1-hramamurthy@google.com> <20250522235737.1925605-7-hramamurthy@google.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <20250522235737.1925605-7-hramamurthy@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 23/05/2025 00:57, Harshitha Ramamurthy wrote: > From: John Fraker > > Allow the rx path to recover the high 32 bits of the full 64 bit rx > timestamp. > > Use the low 32 bits of the last synced nic time and the 32 bits of the > timestamp provided in the rx descriptor to generate a difference, which > is then applied to the last synced nic time to reconstruct the complete > 64-bit timestamp. > > This scheme remains accurate as long as no more than ~2 seconds have > passed between the last read of the nic clock and the timestamping > application of the received packet. > > Signed-off-by: John Fraker > Signed-off-by: Ziwei Xiao > Reviewed-by: Willem de Bruijn > Signed-off-by: Harshitha Ramamurthy Reviewed-by: Vadim Fedorenko