diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-04-18 04:57:28 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-04-18 04:57:28 +0300 |
commit | 3b53ada5142b62850544f039773f2890edb89fb3 (patch) | |
tree | 1dcbef575cc0e96c8aad403e8d2d699b996ef921 /include/soc/mscc/ocelot.h | |
parent | 6c829efed5e8163dc13fa0d90c1e535e212fcc25 (diff) | |
parent | 9570df353309d010f6afc7146c88a135ee3d3f8a (diff) | |
download | linux-3b53ada5142b62850544f039773f2890edb89fb3.tar.xz |
Merge branch 'xdp-rx-hwts-metadata-for-stmmac-driver'
Song Yoong Siang says:
====================
XDP Rx HWTS metadata for stmmac driver
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:
poll: 1 (0) skip=1 fail=0 redir=1
xsk_ring_cons__peek: 1
0x55f69f65f6d0: rx_desc[0]->addr=100000000008000 addr=8100 comp_addr=8000
rx_timestamp: 1677762069053692631
No rx_hash err=-95
0x55f69f65f6d0: complete idx=8 addr=8000
Result for port 9092:
poll: 1 (0) skip=2 fail=0 redir=1
found skb hwtstamp = 1677762071.937207680
====================
Link: https://lore.kernel.org/r/20230415064503.3225835-1-yoong.siang.song@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/soc/mscc/ocelot.h')
0 files changed, 0 insertions, 0 deletions