Re: [PATCH bpf-next v2 2/3] net: stmmac: Add txtime support to XDP ZC

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2023-12-01 15:27:00
Also in
bpf, linux-doc, linux-kselftest, lkml, netdev
Reply to
Jesper Dangaard Brouer, 2023-12-01
Jesper Dangaard Brouer wrote:

On 12/1/23 07:24, Song Yoong Siang wrote:
quoted
This patch enables txtime support to XDP zero copy via XDP Tx
metadata framework.

Signed-off-by: Song Yoong Siang<redacted>
---
  drivers/net/ethernet/stmicro/stmmac/stmmac.h      |  2 ++
  drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 +++++++++++++
  2 files changed, 15 insertions(+)
I think we need to see other drivers using this new feature to evaluate
if API is sane.

I suggest implementing this for igc driver (chip i225) and also for igb
(i210 chip) that both support this kind of LaunchTime feature in HW.

The API and stmmac driver takes a u64 as time.
I'm wondering how this applies to i210 that[1] have 25-bit for
LaunchTime (with 32 nanosec granularity) limiting LaunchTime max 0.5
second into the future.
And i225 that [1] have 30-bit max 1 second into the future.


[1] 
https://github.com/xdp-project/xdp-project/blob/master/areas/tsn/code01_follow_qdisc_TSN_offload.org
Good point Jesper.

Can we also explicitly document what the type of the field is?
Nanoseconds against the NIC hardware clock, it sounds like.

We have some experience with this, too. Something needs to do the
conversion from host clock to NIC clock. It is not sufficent to just
assume that the host clock is synced against the NIC clock by PTP.


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (17 messages) 17 messages, 3 authors, last reply 2023-12-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help