Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1159263lqo; Thu, 9 May 2024 06:30:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3P10VUyE9cn6sF4GZhq+Gph4ZkZu9P+5Fy5XtK28GyDrkS+7j5mRindFQ/kZXQi0gjlPkPyeLyyb80TCRHIKDV82u0ntwtsFcdsgeGw== X-Google-Smtp-Source: AGHT+IFvbMOF+xXHZDpxFoavKvZFktx2hwGwUHy0dZGGJdS7ZQAKwKE+saJQGzz1/3cWleHV7Xor X-Received: by 2002:a05:6358:e488:b0:192:ba37:f9f5 with SMTP id e5c5f4694b2df-192d29170ddmr675176755d.4.1715261420023; Thu, 09 May 2024 06:30:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715261419; cv=pass; d=google.com; s=arc-20160816; b=krTDK9temyL84L0jpl5txzrXvo/IRg7pDwM4kr6nuCV2DAbWBfff0DmKfcoT0P+WOw Rv11zk0EycT9PXsXyvxm987JGiVKBH6TkA1CXOCKkzmLF4gaYolSqkkszpQkuIvoTtYP CD1bHuO//9YMP43Nzm4Kg37KBPGhW4WfybpsIsEOiq2qJqM+ooKwapn5DLNt2waDeO3S Hy7PjDhZV0t2rh4Z+mrUVgnOh4wcZ6aQAnjt6oVWdrqG6zH2uUsXVDXMEWgixAdSIWMU C0ie7qJzhhUK2v/DANmsL5kd9fzLbXSAuS6HszyOzopryAbGshj+T44tOcm+NDLZn6eo tb9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=ELRiPzSaiwBksf6U0zKzkjH8xyzzGxI12XOql1C3goM=; fh=cek18qVN9gLpZN27+E0biqjm6j8RgN7at01nQtYxvoo=; b=kEn0rYB2STgXyCit1WmZ3hJLarIfN92MGLU6iCfXw570smMdHEG7SYOA6lB3JLqfgM GzWN2ASuHCFXSvV7XTyi0VYpG06sYlv0H8JWjyG06ihf9arhSlf5v2SPz9Tuwu6jBcmX pWRpOz7yRZWWJrLynkGVTRtMfK3/bMu+SV/upcVmN34ZxDUcpcP3yav63aN10Ytmn5Qp sXxQLhpu3AKZ0vMMaF94oYOX5bVnodRgfvsHmcSy/bYEId88CqINRiia4kdwiBddgZc3 Q8VhyxdpA9HRBtpjfgIStF4TJqM4oX+DQ/WD32JYjgFZNj6TmtdBEkZEOMeNNAVclGBo Fn8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lFF3xVA2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f6ffbsi1389161a12.370.2024.05.09.06.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lFF3xVA2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DC10FB21534 for ; Thu, 9 May 2024 13:30:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45D2C155A34; Thu, 9 May 2024 13:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lFF3xVA2" Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D3A21272A8; Thu, 9 May 2024 13:30:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715261403; cv=none; b=nii++1oYT75O58Y2+aj/4Bg1gL5Z/WYZSyPQCFjiE7yWpd+kFawgomTfZyX9uwp7Zi31nNOSUNwttEHtaHyTDdjWz4LVcf92fp6YTWyKi4piqPaTuQCj6NuVMRK+zDvUHEnCMLFd/sKVwjAf9aYNOq9canaDIhXUHREcICG8EAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715261403; c=relaxed/simple; bh=Vqluo3CoEl0yjpeMMYMVlJn59yph0GEYTkGYgj/VXAg=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=ljnyKYGtfyMefbFVKlhzPCgOh/ss/Ort9GSz8JDICS0AjPxRg6jhvJADt9v5t+CmHmJSQAcb2XV760JzJhS65KYW0BOOgARAsznVCYcrJId3Wo32SbUmGvq0pgBDrSFBqBP6lmlKxASZjrW9MiCAdy1TOlp/IaLR2HK9Aa47Hrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lFF3xVA2; arc=none smtp.client-ip=209.85.222.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-792b8d989e4so60969885a.2; Thu, 09 May 2024 06:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715261401; x=1715866201; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ELRiPzSaiwBksf6U0zKzkjH8xyzzGxI12XOql1C3goM=; b=lFF3xVA2EWnoha8f6ODTFylP6Bu4MiUDRGAeAXLl1zMoZBtRybFaylKVaijy5j8IQt vxaZi/X8How+W8wANNqXM8/x+5n1mCnXCYl5O65+IHlyOX9Bfd5RFA4xR5DTH4mN8oND hIZwyE43T7aBBldCckGUXOXCJfBbP/rFC+jbcv2W2q9IqlNgBQoqrmeggEDotsF69pDa T6Xts02cz5YAXlD9cPoR6dWRgiyAjue63LmA5nnYhL2Fx3oSB1k5ZN1BFEFyraXLNwbA AcNSrz7WIk2D3ftnem9PyjnSZaM9t5RZeBWBN7im45I9jYjFaFjomrWpyxR9E5oMB3wF y9lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715261401; x=1715866201; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ELRiPzSaiwBksf6U0zKzkjH8xyzzGxI12XOql1C3goM=; b=uaU2fzndbg8KTmwaCPNNZQI4CO0wsRMSCOt7CIDkRMZePr0W63gpQ0up5IF0QON9ne GMTgZnlzQY2JzFYoRHo4RNJbuNtkVCdgeJzyB3xIeDDLnrJOPyAYeNjHHWOmZz+Yjnxj xoCTsOBzx8Dpp1A86Qbhhq5guRSsdZ1Aob9da6pPcHTDaFoorH8u/rfOb9jWtYJ5Pnf1 kvxyT6hepNEc7BH49wVpRD8Pep/hVCcIZu+sieUPgbn4SRBgrjJAA7G/Tkroy3kRchxh 127OucoTxjoUnN+6O6oSaGiVswHpVUH6HFnmbh28K72YmatCjzLndhAWiQu+mvyzuW8r LvzA== X-Forwarded-Encrypted: i=1; AJvYcCVeHjTE16+nWVqWbcfzWW4x4FpZLZFRZHxXOh8Lwmqf7wkbGXNrcsZF20Wei1HDYNuVcC1GRxvlCOIoVtjW7+00ChXg7B2L727U2cq1dEoR1JBr4rtPO86VAq7xMsBEdMthorGNTzAqXNR/XP6s6jzeJ26AzhJvWtIA X-Gm-Message-State: AOJu0Yww180FRwGfCiCooNj3zPTZWhshgtC+gZDtq1X8zNO554qhbhNO ih7rx1Um9CQbkvyhzYBuAc8yPIIWElf/jhoFYsGiTBlSrh19gDfE X-Received: by 2002:a05:6214:2581:b0:6a1:4580:9555 with SMTP id 6a1803df08f44-6a1514374bemr63898186d6.16.1715261400783; Thu, 09 May 2024 06:30:00 -0700 (PDT) Received: from localhost (164.146.150.34.bc.googleusercontent.com. [34.150.146.164]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6a15f1d7040sm6828186d6.107.2024.05.09.06.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:30:00 -0700 (PDT) Date: Thu, 09 May 2024 09:29:59 -0400 From: Willem de Bruijn 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 , Daniel Borkmann , bpf Cc: kernel@quicinc.com Message-ID: <663ccfd7bc17d_12691429452@willemb.c.googlers.com.notmuch> In-Reply-To: <20240508215842.2449798-2-quic_abchauha@quicinc.com> References: <20240508215842.2449798-1-quic_abchauha@quicinc.com> <20240508215842.2449798-2-quic_abchauha@quicinc.com> Subject: Re: [RFC PATCH bpf-next v7 1/3] net: Rename mono_delivery_time to tstamp_type for scalabilty Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Abhishek Chauhan wrote: > mono_delivery_time was added to check if skb->tstamp has delivery > time in mono clock base (i.e. EDT) otherwise skb->tstamp has > timestamp in ingress and delivery_time at egress. > > Renaming the bitfield from mono_delivery_time to tstamp_type is for > extensibilty for other timestamps such as userspace timestamp > (i.e. SO_TXTIME) set via sock opts. > > As we are renaming the mono_delivery_time to tstamp_type, it makes > sense to start assigning tstamp_type based on enum defined > in this commit. > > Earlier we used bool arg flag to check if the tstamp is mono in > function skb_set_delivery_time, Now the signature of the functions > accepts tstamp_type to distinguish between mono and real time. > > Also skb_set_delivery_type_by_clockid is a new function which accepts > clockid to determine the tstamp_type. > > In future tstamp_type:1 can be extended to support userspace timestamp > by increasing the bitfield. > > Link: https://lore.kernel.org/netdev/bc037db4-58bb-4861-ac31-a361a93841d3@linux.dev/ > Signed-off-by: Abhishek Chauhan Reviewed-by: Willem de Bruijn