Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1453607lqd; Thu, 25 Apr 2024 16:50:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpnhYVtNEkRxWFAVghiPc+zk1Cs1hybvO8VseGnbLIox50yNDIvcT6Iz6kHfRqPHAvatepepvxqcmG7M0kbTu8hayWNxOVR+nlRA3Ytg== X-Google-Smtp-Source: AGHT+IHnVIQkMnpMTalXJXgPEaFPjbl5OO02Exym42Ay8650dARx9AiP4xUJFT+EI2TB64mIrxHE X-Received: by 2002:a05:6808:60e:b0:3c6:eb0:7471 with SMTP id y14-20020a056808060e00b003c60eb07471mr1428147oih.43.1714089059663; Thu, 25 Apr 2024 16:50:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714089059; cv=pass; d=google.com; s=arc-20160816; b=J8Jg/nJc/UMEEq2dtq5KXxnerUnRdO4vLSfySkJXXeuc+gHXJuPuVUBx7qrFoYSvuE pLFhEdedVFF2eVlZunuY1nf3oqZAVAmm0ZFujVdzyZsyvJkYZQAirfgCloAGEqmn1hAT VT22H93YXiKsJcgjxTyDTdiVzIb08FQoO38Y5KQyINPiylhkooeaEipI+6GVYwLESOnG ayJ4JxY4vbNvmXftUFwNTtnPjUJvjEE+5wXrlOvxMnw5PK2cfIcd8IxT8WsuXMo6lJQW vLhPZFbJnOvX3aDCyITiFYzV1kuERLXtyUO7B53PDH1BkaQuz9I8ms9oyjNheOwfxUlo GWBQ== 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:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=O9GImcDZJ1T3zd/p2AjMxBvWvdh595wzGLC3mDjc/3w=; fh=KPX7UKuV9wOE6J/tV9pgu+N4YnhiaDKaR4efX4V8Fb4=; b=Dpms6Ri3pYuPgF8ONay8+JYVPod7Dmvndm2R7JoUInpQGJhpn3Q6mR4qPjoMTnp+Sw MRzbqEV1y7s7M64Ug8CTjAAp151wPfgNNuZbYjZln6hYAaZ5KpEI3viRIRBXcD1TO+DV Bot35lFAj7iaT4OI1XuqrcqgPKh5u60SPF6+lQ02I9mWkTsa87Fg1esibX7PTmhntWu6 Zi9gIecYvpD7GCHvNraUHoCRx/Gt44NzRURqEFy/wZb4fSprkBBMH2dyjqJvGJHNbWpq 7rA6AuSr2NYnNZ9NgJ7UDSC5VPLwCfrX4WNXk8HH3Iq0gCGBlrOU7e/9e/5/0whLJfuK GmKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kVSiM8dT; 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-159371-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159371-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. [139.178.88.99]) by mx.google.com with ESMTPS id m4-20020a63f604000000b005dc4af11fedsi14045643pgh.887.2024.04.25.16.50.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 16:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159371-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kVSiM8dT; 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-159371-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159371-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 3FBEC28109B for ; Thu, 25 Apr 2024 23:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3EF6156F35; Thu, 25 Apr 2024 23:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="kVSiM8dT" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 0770B15533B for ; Thu, 25 Apr 2024 23:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714089052; cv=none; b=LBpjqq/IA9lprdc9EUjuD/EltIKCUIeGZfN8SCKkG8bOrbOLwF/i4r4dK1W0i0GdtkaW5pQ/dnVWSWeFEEDCRPP2Nqoa/q/AK/Kq8W/gdN8BzcMriyV6L0WWXJ6a2fqbOmZq8p08NQesTonNW2N+wFxsFk+Ful7Pm5SObu8J7h8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714089052; c=relaxed/simple; bh=OS6pp0gMWtmBK9RLfOvHFjAv8kO/PRmUpAyYohUkgUU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AZnyw8P4/OMFs4vR7oiTWPn0E6m0y45nTc4Gi3tEuQ4178R4kvNCE+UjctpNyjZFo4UmGlNpbp0oZOuXNWiQKLdfPTWiFuPxKnJ2n1c/Ruy+zs2jPqnDc0dN0iVeRqvxZJscH1SVO+lZvjUtSw8+TZJOV8aOyb3C5t+lpBuIRag= 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=kVSiM8dT; arc=none smtp.client-ip=91.218.175.173 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: <6cebfd92-7ad0-496a-9f31-f4c696fb5cb8@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714089049; 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=O9GImcDZJ1T3zd/p2AjMxBvWvdh595wzGLC3mDjc/3w=; b=kVSiM8dTzBoY4x/UZrCB3I6uzU4vkL/NPT8OcWzedjF2FGFGfB7M2ey1Y58wxfqy+ydDul 2p16+ghDU3MlG6+M7+owRn8ajp8F81P/GbdZV/IMSK7080yg9D+H4DpH2C1CnWAqvHy3Bp p9sj5JKmvRYJEitTyCvWQ5Sgaaa9an4= Date: Thu, 25 Apr 2024 16:50:43 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [RFC PATCH bpf-next v5 1/2] net: Rename mono_delivery_time to tstamp_type for scalabilty To: "Abhishek Chauhan (ABC)" Cc: Willem de Bruijn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Martin KaFai Lau , Daniel Borkmann , bpf , kernel@quicinc.com References: <20240424222028.1080134-1-quic_abchauha@quicinc.com> <20240424222028.1080134-2-quic_abchauha@quicinc.com> <662a69475869_1de39b29415@willemb.c.googlers.com.notmuch> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 4/25/24 12:02 PM, Abhishek Chauhan (ABC) wrote: >>>> @@ -9444,7 +9444,7 @@ static struct bpf_insn *bpf_convert_tstamp_read(const struct bpf_prog *prog, >>> TC_AT_INGRESS_MASK | SKB_MONO_DELIVERY_TIME_MASK); >>> *insn++ = BPF_JMP32_IMM(BPF_JNE, tmp_reg, >>> TC_AT_INGRESS_MASK | SKB_MONO_DELIVERY_TIME_MASK, 2); >>> - /* skb->tc_at_ingress && skb->mono_delivery_time, >>> + /* skb->tc_at_ingress && skb->tstamp_type:1, >> Is the :1 a stale comment after we discussed how to handle the 2-bit > This is first patch which does not add tstamp_type:2 at the moment. > This series is divided into two patches > 1. One patchset => Just rename (So the comment is still skb->tstamp_type:1) > 2. Second patchset => add another bit (comment is changed to skb->tstamp_type:2) I would suggest to completely avoid the ":1" or ":2" part in patch 1. Just use "... && skb->tstamp_type". The number of bits does not matter. The tstamp_type will still be considered as a whole even if it would become 3 bits (unlikely) in the future.