summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAditya Garg <gargaditya@linux.microsoft.com>2026-08-07 13:56:35 -0700
committerPaolo Abeni <pabeni@redhat.com>2026-08-13 13:42:48 +0200
commit1da1a037bc60c3744a6cdcb7610917a20ba1a318 (patch)
tree36be7d78156b0aff05a62a618babf0a46df448a6 /tools/perf/scripts/python
parent03a105c83243a8c9cc147a44a7ec7bfd4c10ee8c (diff)
net: mana: Route ring-buffer access through offset-based helpers
In preparation for backing GDMA queue memory with a vector of non-contiguous order-0 coherent pages, route CPU access to a queue's ring buffer through two new helpers: mana_gd_ring_ptr() returns the CPU address of a byte offset into the ring, and mana_gd_ring_contig_avail() the number of bytes left before the ring wraps, so a WQ write that runs past the end of the ring can be split at that point. Convert the EQ, CQ and work-request paths to use them. mana_gd_write_sgl() now takes a byte offset rather than a raw pointer, so mana_gd_post_work_request() derives the SGL position arithmetically. While queue memory is contiguous both helpers are simple arithmetic on the ring base and size, so there is no functional change. Signed-off-by: Aditya Garg <gargaditya@linux.microsoft.com> Link: https://patch.msgid.link/20260807210002.1695263-2-gargaditya@linux.microsoft.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions