Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp726608lqd; Wed, 24 Apr 2024 15:21:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2U7g8MoB7n5migUScsEq+aLuBTWKI6deVdpOehuV29OmTjPO9gF2iKnATLDig1uDilAvkMSCHDRDyW/5R/nKGwqZmtshPbDpcpPJL6Q== X-Google-Smtp-Source: AGHT+IGepUe7FOTu4a5sF5EDlteDKu3oUPeP9OYrGxp4BiTg4ehQ/YImmXK1wtjDO7Xai1EtyY/5 X-Received: by 2002:a05:6a20:840a:b0:1a7:7818:720e with SMTP id c10-20020a056a20840a00b001a77818720emr4848201pzd.21.1713997265335; Wed, 24 Apr 2024 15:21:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713997265; cv=pass; d=google.com; s=arc-20160816; b=XA2ktLwfOk4p37ICYOMjXxppOgdM6aWquo4lDHnj1i3O1sFDHsqABo/YB+JKHdnN3O hnX92OWpBsG8viRIq0T2k0iNvF83TzHuyqnUiS3H4jwPX/hW56zfbaUxsTCZeble4IKq PhU8EcuRzh0n2izjPfksSp8yZ9o2g/eJmhuo3Fql/geHjLDD46CZ+jlRkequHnSPLtB9 2iTW+Uv72LfoztXP23qbULiUsmjBrt8/5LDgczRlHG78Rc/Ve7irbIclmkP526QHB6ey i2rWrbTBklnZAfSvt7ZxcoxbmqyW8I40Ycves06mT08F+4v0qXmyitgk/goYoHEjauvT 2Dhg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=3K56OkUxERthHoKXLzWVjMjq56gNekNkkNgWZBs6Y5I=; fh=/iU0t2Y0Kz3seCRFJNGF+1a02X0rtCsR4mc85nxNZNw=; b=kj0AWBzIGMpZtjAx6dSCu8oopPiWm1bDOC3mj2yUE201KKIz754Ci4fqLPrurOFzCE PC5/kzjQm8NBvFO6nLFqjYlRASFfdxeF4KVT0c49Gr4uVSTHunuipdDZYdpC6C+cCHB7 36dmDqmY8ENNQUSiiekuGXh9OOIlV/QUueKE3csg0la/yPHTXIcx+kKhk0AXNRXzIBsQ /rLX+JqZjKDNC4bCsAzSIZlPwUliFac2RJRoB+VfnlBo+Ng8ufUNciI+GAWBw5ztne0I so/YpE8w2wKoEn8alSm6vvaF0yOGfkaXnIZYwIvH4wB+kcCqjiC3uvxgVS9GDjgQgvpO 3VCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=W87k+08j; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-157777-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 7-20020a631747000000b005e425bf0f0esi11683897pgx.830.2024.04.24.15.21.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 15:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157777-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=@quicinc.com header.s=qcppdkim1 header.b=W87k+08j; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-157777-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157777-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F03622856B6 for ; Wed, 24 Apr 2024 22:21:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01FB216D4F5; Wed, 24 Apr 2024 22:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="W87k+08j" 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 AF7B013AD0D; Wed, 24 Apr 2024 22:20:52 +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=1713997254; cv=none; b=pkHtTXY3q1dFPZQ9W+5LFADzBeBPTMem/QgRM7W0tScEWqKGyGLUHW0Q2GMx1MTS94lyWjwiL0+as3hXjVNtvXokAGUGtLMaWbWXPzxsBv87B/VfLf0OFzmxJYcUUL49U6wppNXwGU+3H/GOJj50PKHKTmiGn8EM0yzIzpbfbzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713997254; c=relaxed/simple; bh=cONU3mmrJUgdSbGbxulujXMO9As0fPjca+3seJRZqvk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=U29oEoDiVV+F4nqxvjhkL0bpYh/W2wbu9lb8+RITebIGMfZN7lPBppjQVKppfEHFNNHcwEj/c0iqCDHQzFk5Z3sFicuWZ3hDRACF65UgDNU3An0i9jiQ8AGS7MMdTLk9fbCiZsuhkzHb3hhshb8y4+GzheNxnwUhwsUCkrjHP5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=W87k+08j; 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=qualcomm.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43OMJ4vN001337; Wed, 24 Apr 2024 22:20:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=qcppdkim1; bh=3K56OkUxERthHoKXLzWV jMjq56gNekNkkNgWZBs6Y5I=; b=W87k+08jZPWZCRZ0Xo6ulY3o7K01ZNLa9WeQ WvlxnLO9tXOrWWZb7v3PXjB4okjJUhCw3ElQLt4jzbl7YteOtWWHUfem+aqItBTc aA/wHjVcmZ8A4/dFggZ69trRpGu0+C9f0Gh7VQGVWnhFiykGsJRsECwVEcsgD4OL +CO78i4J6rbwGHIY88wwdKtgaY1my4b1KqxdBspYqysvZUccFJy5FR911Q+EDQWs hdHhDQ+oTi0teWyJ+rGZ0NL2k6iKyGMBGXjfPHmaLsEic3EDu5e5UZdiWB+ea6yT BoMajfPDdB9vjfKmmfWontBAhXykDfTUA9g2an0lhK8Hgymdhg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xpv9e2a56-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 22:20:30 +0000 (GMT) Received: from pps.filterd (NALASPPMTA02.qualcomm.com [127.0.0.1]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 43OMKT4S019393; Wed, 24 Apr 2024 22:20:29 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTPS id 3xp4jb1776-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 22:20:29 +0000 Received: from NALASPPMTA02.qualcomm.com (NALASPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43OMFl0D014703; Wed, 24 Apr 2024 22:20:29 GMT Received: from hu-devc-lv-u20-a-new.qualcomm.com (hu-abchauha-lv.qualcomm.com [10.81.25.35]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTPS id 43OMKT0w019376 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 22:20:29 +0000 Received: by hu-devc-lv-u20-a-new.qualcomm.com (Postfix, from userid 214165) id 53FF5220BD; Wed, 24 Apr 2024 15:20:28 -0700 (PDT) From: Abhishek Chauhan To: "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 Subject: [RFC PATCH bpf-next v5 0/2] Replace mono_delivery_time with tstamp_type Date: Wed, 24 Apr 2024 15:20:26 -0700 Message-Id: <20240424222028.1080134-1-quic_abchauha@quicinc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: mhu9cKJ6S1ivAzggkV6TcCOGIuHE4fvL X-Proofpoint-ORIG-GUID: mhu9cKJ6S1ivAzggkV6TcCOGIuHE4fvL 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-24_19,2024-04-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 clxscore=1015 malwarescore=0 mlxlogscore=754 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404240115 Patch 1 :- This patch takes care of only renaming the mono delivery timestamp to tstamp_type with no change in functionality of existing available code in kernel also Starts assigning tstamp_type with either mono or real and introduces a new enum in the skbuff.h, again no change in functionality of the existing available code in kernel , just making the code scalable. Patch 2 :- Additional bit was added to support tai timestamp type to avoid tstamp drops in the forwarding path when testing TC-ETF. With this patch i am updating bpf filter.c and some of the BPF unit test framework which tests redirect test scenarios. Need reviews on those patches Abhishek Chauhan (2): net: Rename mono_delivery_time to tstamp_type for scalabilty net: Add additional bit to support clockid_t timestamp type include/linux/skbuff.h | 74 ++++++++++++++----- include/net/inet_frag.h | 4 +- include/uapi/linux/bpf.h | 1 + net/bridge/netfilter/nf_conntrack_bridge.c | 6 +- net/core/dev.c | 2 +- net/core/filter.c | 50 +++++++------ net/ieee802154/6lowpan/reassembly.c | 2 +- net/ipv4/inet_fragment.c | 2 +- net/ipv4/ip_fragment.c | 2 +- net/ipv4/ip_output.c | 11 +-- net/ipv4/raw.c | 2 +- net/ipv4/tcp_output.c | 16 ++-- net/ipv6/ip6_output.c | 8 +- net/ipv6/netfilter.c | 6 +- net/ipv6/netfilter/nf_conntrack_reasm.c | 2 +- net/ipv6/raw.c | 2 +- net/ipv6/reassembly.c | 2 +- net/ipv6/tcp_ipv6.c | 2 +- net/packet/af_packet.c | 7 +- net/sched/act_bpf.c | 4 +- net/sched/cls_bpf.c | 4 +- .../selftests/bpf/prog_tests/ctx_rewrite.c | 10 ++- .../selftests/bpf/progs/test_tc_dtime.c | 24 ++++-- 23 files changed, 153 insertions(+), 90 deletions(-) -- 2.25.1