` (4 subsequent siblings) 5 siblings, 3 replies 53+ messages in thread 20:00 ` veth: Support rx timestamp metadata for xdp Stanislav Fomichev 20:00 xdp: hints via kfuncs Stanislav 20:00 ` Stanislav Fomichev * bpf: Support inlined/unrolled kfuncs for xdp metadata Tools/testing/selftests/bpf/xskxceiver.h | 5 +-ġ8 files changed, 348 insertions(+), 22 deletions(-)Ĭreate mode 100644 tools/testing/selftests/bpf/progs/xskxceiver.c testing/selftests/bpf/progs/xskxceiver.c | 43 +++++++ Tools/testing/selftests/bpf/Makefile | 1 + Selftests/bpf: Test rx_timestamp metadata in xskxceiver Selftests/bpf: Convert xskxceiver to use custom program Libbpf: Pass prog_ifindex via bpf_object_open_opts Veth: Support rx timestamp metadata for xdp Here? (with a set of another tx kfuncs to "expose" bpf/af_xdp metatataīpf: Support inlined/unrolled kfuncs for xdp metadata Won't fly at TX seems like TX XDP program might be the answer I think we've agreed that just reusing whatever we have at RX TX picture is not clear but it's not clear with BTF ids as well Has to be aware of the final AF_XDP consumer metadata layout) forwarding has to be handled explicitly the BPF programs have toĪgree on the metadata layout (IOW, the forwarding program Is more efficient than the BTF id approach where all metadata has to beĮxposed for every frame (and selectively consumed by the users) it's not all or nothing users can use small subset of metadata which Unrolled to the same code as if the metadata was pre-populated and the metadata should, in theory, be cheap if used kfuncs should be we avoid BTF complexity the BPF programs themselves are now responsibleįor agreeing on the metadata layout with the AF_XDP consumer I've intentionally kept it small and hacky to see whether the approach is It to export rx_timestamp (plus add rx timestamp to veth driver) rewrite xskxceiver test to use C bpf program and extend Implementation if unrolling is not supported by a particular It to unroll/inline kfuncs kfuncs have the default "safe" at load time, find appropriate ndo_unroll_kfunc and call add new BPF_F_XDP_HAS_METADATA program flag and abuseĪttr->prog_ifindex to pass target device ifindex at load time I've tried to CC most of the people from the original discussion,įeel free to add more if you think I've missed somebody. This is an RFC for the alternative approach suggested by Martin and Magnus Karlsson, Maryam Tahhan, xdp-hints, netdev Jesper Dangaard Brouer, Anatoly Burakov, Alexander Lobakin, Kpsingh, sdf, haoluo, jolsa, Jakub Kicinski, Willem de Bruijn, ` (5 more replies) 0 siblings, 6 replies 53+ messages in threadįrom: Stanislav Fomichev 20:00 UTC ( / raw)Ĭc: ast, daniel, andrii, martin.lau, song, yhs, john.fastabend, 20:00 ` bpf: Support inlined/unrolled kfuncs for xdp metadata Stanislav Fomichev Xdp: hints via kfuncs All of help / color / mirror / Atom feed * xdp: hints via kfuncs 20:00 Stanislav Fomichev
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |