Thread (20 messages) 20 messages, 7 authors, 2023-07-03

Re: [RFC bpf-next v2 11/11] net/mlx5e: Support TX timestamp metadata

From: Alexei Starovoitov <hidden>
Date: 2023-06-27 23:50:44
Also in: bpf

Possibly related (same subject, not in this thread)

On Tue, Jun 27, 2023 at 4:33 PM John Fastabend [off-list ref] wrote:
Yeah I think so and then carry a couple different object files
for the environment around. We do this already for some things.
Its not ideal but it works. I think a good end goal would be

 int bpf_devtx_request_timestamp(...)
 {
        set_ts = dlsym( dl_handle, request-timestamp);
        return set_ts(...)
 }

Then we could at attach time take that dlsym and rewrite it.
Sounds like we need polymorphic kfuncs.
Same kfunc name called by bpf prog, but implementation would
change depending on {attach_btf_id, prog_type, etc}.
The existing bpf_xdp_metadata_rx_hash is almost that.
Except it's driver specific.
We should probably generalize this mechanism.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help