Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp67049lqm; Tue, 30 Apr 2024 13:00:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQlit+X4vlmq00EHS3Xv0IbHfRFEZLr1TaYDUvYtcETVBmhyJ/PsllujfPgW+/OgDJT+BI+2FmHBEfeQ1IceV1hzcr8ec5aPGy6y9W4Q== X-Google-Smtp-Source: AGHT+IET3SKElTaD0IMyRPvqgmXJ8329KtrReLD6A5ZbI/PDDKx0b5qxIJxfE1i0iziMcd3KSs73 X-Received: by 2002:a05:6214:2129:b0:69b:6fc5:ce4d with SMTP id r9-20020a056214212900b0069b6fc5ce4dmr492668qvc.2.1714507211250; Tue, 30 Apr 2024 13:00:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714507211; cv=pass; d=google.com; s=arc-20160816; b=XHsPWHJ+Frm7NmaFHSpDaEhE+TP5IxddoLOLdBol7A8zTpSrEtlaok3KOZtp34U5cM nLTskiF71bq76flK1+xckt5DJXi6ghxRA/j1WCxT3mBnC5HIYwuXCIMQi0XF2Se3vSNM jmn53AAhtrAtHbkb1yYVAhEjDQPHOsw6vubVJQfIB2DsUbsAjg5BIqxSb/EyGTB8Ojmr fXdjxFQPdfvvt9pRCnd/vbMZCOXBEl5fo8AOM9zSUKvJCc8FTomdd9lgh39D4yNz4CGa Pisnt4kxhT76/vRF/QiKSAS4NKas4vpUs5C6zc0MZC4fnzumKFlu6CSV7inumMr6KKfa siyQ== 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:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gHBK/SMKqy0pt4SuJXygjGLR4a9GPGN8t1EdsxK0Kno=; fh=QHMpzJGRrblfYHJ1P8PMoXitIJ2+7R7/ZdhVgDt/JVo=; b=HnJjLop6rbBaQOdaGNvwtDuwBFBMGFSWUcExrR8tMI9hQW6wHJxftcQZDeVOgCpkN2 g1KA9kfF+tlnyhA9F4eXBFHUcTWXQUT/kI9/G4VuMytFotBOPlNakgDJ0OOuCyoMXGrj T8b3wJlnSxQxHYWkhrlOQiMvuazPrGBjBGT+lcg6EhQPo5Pi6mY7FKDG5Mu1cFG1TIwO kBvt92jZFZDX2YulNzb0SRVFw4DK4ujp8GHAIn8Y0RPxgDp7Idi1UUIi//BYra6Gpw8e I0AHe+SLoFmEzs7igqGxJI3s4VCB+O40gzFbxYvc/aJA2mBa1id85Fz+tiVg2PdDOF1O boMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jzFsFGfG; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-164676-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164676-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o5-20020ad45c85000000b006a0cb7cb4a8si6315747qvh.421.2024.04.30.13.00.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 13:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164676-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jzFsFGfG; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-164676-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164676-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F09CD1C238E7 for ; Tue, 30 Apr 2024 20:00:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87FB119DF48; Tue, 30 Apr 2024 20:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="jzFsFGfG" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 1A932174EF1; Tue, 30 Apr 2024 19:59:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714507199; cv=none; b=Z29vDli6JAeoWrIkeCMNxcKE7Hb1uJzAUgpUIqyliuOwlWYBygpPGBKKemG9bAbvi1Hf7ardb5i3DddWcfpIsdsvEWHJV09Puc+syfG2XJ7mNtdkb5pZYv2lkpl17PEcXxqd3LSPi8VGud72ngNZyD4x6URsY/uiJ2RPxfExlXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714507199; c=relaxed/simple; bh=yGI8rHp7d7L9kbE813idL3CIk7NqQ7kEfvGzd5z2dhI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=o2xk1Td9UxS9UmOlykWFaNbMQshw+UXAU+ogxzUg8d9x78xwWl16+yFsESBW2Lq9uxztPDr2GD4MJJirrIfucZxpbs95CHyyKnY80ov5gGnKZECAO1dRZHT30afuNpGv+9NLDvK1NwoiNw8t8dNXC86pSjYGFZ8aDESXjidZAgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=jzFsFGfG; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43UJdAwq015120; Tue, 30 Apr 2024 19:59:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=gHBK/SMKqy0pt4SuJXygjGLR4a9GPGN8t1EdsxK0Kno=; b=jz FsFGfGCLJnA9j2yH0zpA/89gD/F4tUMa6ciWg2J/4dUsGPor73hZXbKi6Ms7BAho yWBmctBnErasMm5gyh1xrsw6MEkzbvc2S6cQ1LeeCSebEqk+/mqtnxEQ7Fk99n+a MimnrBgrezIAmB5YwiyiIkJt1Wa6VAljQO5qd0L6BtzDnBbypvNBZt40DfJkGsOF rgIx6KoJMfLOg2rldSzzVdeukjtK5wPGtN97LSwAlCutzBtLNVMEvx0tDiJJeepQ Fm8erpjkbEKjvi+fBovsvv7mx/4qIEd1NmqkFHC6YxeazI7VSh9WKwQUlYl5dGEu 9vdDgGeEso3VjgG+InEg== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xtrep2hg8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 19:59:36 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43UJxZhw021888 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 19:59:35 GMT Received: from [10.46.19.239] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 30 Apr 2024 12:59:31 -0700 Message-ID: <13e141a2-ce22-42c8-b462-348ee700fe03@quicinc.com> Date: Tue, 30 Apr 2024 12:59:31 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH bpf-next v5 2/2] net: Add additional bit to support clockid_t timestamp type Content-Language: en-US To: Martin KaFai Lau CC: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , Andrew Halaney , "Willem de Bruijn" , Martin KaFai Lau , Daniel Borkmann , bpf , References: <20240424222028.1080134-1-quic_abchauha@quicinc.com> <20240424222028.1080134-3-quic_abchauha@quicinc.com> From: "Abhishek Chauhan (ABC)" In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: RT8YUXCqthp7g5R6xfM6-Lsmir3XpD4l X-Proofpoint-ORIG-GUID: RT8YUXCqthp7g5R6xfM6-Lsmir3XpD4l X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-30_12,2024-04-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 clxscore=1015 malwarescore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404300143 On 4/26/2024 4:55 PM, Martin KaFai Lau wrote: > On 4/24/24 3:20 PM, Abhishek Chauhan wrote: >> diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c >> index a9e819115622..63e4cc30d18d 100644 >> --- a/net/ipv6/ip6_output.c >> +++ b/net/ipv6/ip6_output.c >> @@ -955,7 +955,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, >>               if (iter.frag) >>                   ip6_fraglist_prepare(skb, &iter); >>   -            skb_set_delivery_time(skb, tstamp, tstamp_type); >> +            skb_set_tstamp_type_frm_clkid(skb, tstamp, tstamp_type); >>               err = output(net, sk, skb); >>               if (!err) >>                   IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), >> @@ -1016,7 +1016,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, >>           /* >>            *    Put this fragment into the sending queue. >>            */ >> -        skb_set_delivery_time(frag, tstamp, tstamp_type); >> +        skb_set_tstamp_type_frm_clkid(frag, tstamp, tstamp_type); >>           err = output(net, sk, frag); >>           if (err) >>               goto fail; > > When replying another thread and looking closer at the ip6 changes, these two line changes should not be needed. Similar code exists in ip_output.c for ipv4 packets => ip_do_fragment => I was thinking do we need require that code or not. Since in both functionality are the same, only difference is protocol. From what i see is the for Frag cases in both ipv4 and ipv6, previously skb->tstamp_type was being set for each fragments. If we are planning to not do it for ip6 the same should follow for ip4 too.