From patchwork Thu Sep 2 22:15:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 506199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C36FDC433F5 for ; Thu, 2 Sep 2021 22:16:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9954060FE6 for ; Thu, 2 Sep 2021 22:16:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242536AbhIBWRL (ORCPT ); Thu, 2 Sep 2021 18:17:11 -0400 Received: from novek.ru ([213.148.174.62]:60332 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbhIBWRK (ORCPT ); Thu, 2 Sep 2021 18:17:10 -0400 Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id D1F19500549; Fri, 3 Sep 2021 01:12:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru D1F19500549 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1630620782; bh=KNQjZbtXquHQ4V93076S6OZRbMnpHc7vfvGqQCcVcNg=; h=From:To:Cc:Subject:Date:From; b=eM0vVXtMv/i1VIr7+rudyMWB7WkGuMNA/6KNI32Xadb0c3fQ3KoU7XGpU/rlKzNWL r0X3OaRFAEkVnIUQWQ5SaEaGJoJCbQhCTZVNvXhFvPPlOC1Oc4p+EgWv22QATODSQT mdMYPqU3wQZYQ0h2c28S/8ceQgObyVSIB5xrbczA= From: Vadim Fedorenko To: Martin KaFai Lau Cc: Vadim Fedorenko , Alexei Starovoitov , Song Liu , Yonghong Song , John Fastabend , Jakub Kicinski , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH bpf-next 0/2] add hwtstamp to __sk_buff Date: Fri, 3 Sep 2021 01:15:49 +0300 Message-Id: <20210902221551.15566-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch set adds hardware timestamps to __sk_buff. The first patch implements feature, the second one adds a selftest. Vadim Fedorenko (2): bpf: add hardware timestamp field to __sk_buff selftests/bpf: test new __sk_buff field hwtstamp include/uapi/linux/bpf.h | 2 + lib/test_bpf.c | 1 + net/bpf/test_run.c | 8 ++++ net/core/filter.c | 11 +++++ tools/include/uapi/linux/bpf.h | 2 + .../selftests/bpf/prog_tests/skb_ctx.c | 1 + .../selftests/bpf/progs/test_skb_ctx.c | 2 + .../testing/selftests/bpf/verifier/ctx_skb.c | 47 +++++++++++++++++++ 8 files changed, 74 insertions(+)