From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.toke.dk (Postfix) with ESMTPS id D76C79FC8CE for ; Mon, 10 Apr 2023 12:10:24 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GIns9XPO DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681121425; x=1712657425; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8eoxuz0kULjCVGWAEGYIGKMQ5ODOXKen7qD6Fb3jxRI=; b=GIns9XPO+TR93+GiT4tMTZQK4HWAKK0PpzzTI/Fmnlr/ejFJljejCj46 BdHk38NNW+rbUakMbeL6KmqWf8bk+AYBb5fQ1SP+wZXfdGmLGlSIYkZsS w56PfSf5M7tmOFSuVcyrQS7Y2ZCAGixLR7OefcnqHoUQZC24i91nI+AW3 rFTnQ0NdX6IAs+ms0rcGDoeqCIpLZwTLDUg89gFy1/HO3TV7JNYA3R+wn aGKq7kMN8x2uhrpX44gfvkY8Zx/DFCIoSNNBscNDrtXc3k4RoQ9aEivCy KqG4nYiTMLkx1DF/INYSXTa5JCwlP6ceUivY2cwF4MFl2KN6UJI/eaJdP Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10675"; a="340815276" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="340815276" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 03:10:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10675"; a="752715966" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="752715966" Received: from p12ill20yoongsia.png.intel.com ([10.88.227.28]) by fmsmga008.fm.intel.com with ESMTP; 10 Apr 2023 03:10:14 -0700 From: Song Yoong Siang To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Alexander Duyck , Ong Boon Leong Date: Mon, 10 Apr 2023 18:09:35 +0800 Message-Id: <20230410100939.331833-1-yoong.siang.song@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 2K5ZFYHRE3FJ3XBC4OFTFSPOH4MGOLEF X-Message-ID-Hash: 2K5ZFYHRE3FJ3XBC4OFTFSPOH4MGOLEF X-MailFrom: yoong.siang.song@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, xdp-hints@xdp-project.net, Song Yoong Siang X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] [PATCH net-next 0/4] XDP Rx HWTS metadata for stmmac driver List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Implemented XDP receive hardware timestamp metadata for stmmac driver. This patchset is tested with tools/testing/selftests/bpf/xdp_hw_metadata. Below are the test steps and results. Command on DUT: sudo ./xdp_hw_metadata Command on Link Partner: echo -n xdp | nc -u -q1 9091 echo -n skb | nc -u -q1 9092 Result for port 9091: 0x55fdb5f006d0: rx_desc[3]->addr=1000000003bd000 addr=3bd100 comp_addr=3bd000 rx_timestamp: 1677762474360150047 rx_hash: 0 0x55fdb5f006d0: complete idx=515 addr=3bd000 Result for port 9092: found skb hwtstamp = 1677762476.320146161 --- Ong Boon Leong (1): net: stmmac: restructure Rx hardware timestamping function Song Yoong Siang (3): net: stmmac: introduce wrapper for struct xdp_buff net: stmmac: add Rx HWTS metadata to XDP receive pkt net: stmmac: add Rx HWTS metadata to XDP ZC receive pkt drivers/net/ethernet/stmicro/stmmac/stmmac.h | 5 ++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 88 ++++++++++++++----- 2 files changed, 73 insertions(+), 20 deletions(-) -- 2.34.1