XDP hardware hints discussion mail archive
 help / color / mirror / Atom feed
* [xdp-hints] [PATCH net-next 0/4] XDP Rx HWTS metadata for stmmac driver
@ 2023-04-10 10:09 Song Yoong Siang
  2023-04-10 10:09 ` [xdp-hints] [PATCH net-next 1/4] net: stmmac: restructure Rx hardware timestamping function Song Yoong Siang
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Song Yoong Siang @ 2023-04-10 10:09 UTC (permalink / raw)
  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
  Cc: netdev, linux-stm32, linux-arm-kernel, linux-kernel, bpf,
	xdp-hints, Song Yoong Siang

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 <interface name>

Command on Link Partner:
	echo -n xdp | nc -u -q1 <destination IPv4 addr> 9091
	echo -n skb | nc -u -q1 <destination IPv4 addr> 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-12  4:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 10:09 [xdp-hints] [PATCH net-next 0/4] XDP Rx HWTS metadata for stmmac driver Song Yoong Siang
2023-04-10 10:09 ` [xdp-hints] [PATCH net-next 1/4] net: stmmac: restructure Rx hardware timestamping function Song Yoong Siang
2023-04-10 10:09 ` [xdp-hints] [PATCH net-next 2/4] net: stmmac: introduce wrapper for struct xdp_buff Song Yoong Siang
2023-04-10 10:09 ` [xdp-hints] [PATCH net-next 3/4] net: stmmac: add Rx HWTS metadata to XDP receive pkt Song Yoong Siang
2023-04-10 14:13   ` [xdp-hints] " Simon Horman
2023-04-10 15:33     ` Song, Yoong Siang
2023-04-10 18:11       ` Simon Horman
2023-04-10 16:25   ` Stanislav Fomichev
2023-04-12  1:31     ` Song, Yoong Siang
2023-04-12  4:00       ` Song, Yoong Siang
2023-04-10 10:09 ` [xdp-hints] [PATCH net-next 4/4] net: stmmac: add Rx HWTS metadata to XDP ZC " Song Yoong Siang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox