On Thu, Nov 17, 2022 at 11:47 AM John Fastabend <john.fastabend@xxxxxxxxx> wrote: > > Yeah for timestamps I think a kfunc to either get the timestamp or could > also be done with a kfunc to read hw clock. But either way seems hard > to do that in BPF code directly so kfunc feels right to me here. > > By the way I think if you have the completion queue (rx descriptor) in > the xdp_buff and we use Yonghong's patch to cast the ctx as a BTF type > then we should be able to also directly read all the fields. I see > you noted this in the response to Alexei so lets see what he thinks. Fine with me. Let's land something that is not uapi and then iterate on top.