Thread (27 messages) flat view 27 messages, 3 authors, 2021-06-03

Re: [PATCH net-next v4 2/5] ipv6: ioam: Data plane support for Pre-allocated Trace

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-06-01 04:21:49

On Mon, 31 May 2021 13:43:37 +0200 (CEST) Justin Iurman wrote:
quoted
BTW the ASCII art in patch 1 looks like node data is filled in in order  
I agree, this one could be quite confusing without the related
paragraph in the draft that explains it. Two possibilities here: (a)
add the paragraph in the patch description to remove ambiguity; or
(b) revert indexes in the ASCII art (from n to 0). Thoughts?
Inverting the indexes in the ASCII art would make it clear enough 
for me.
quoted
but:

+	data = trace->data + trace->remlen * 4 - trace->nodelen *
4 - sclen * 4;

Looks like we'd start from the last node data?  
Correct, it works as a stack from bottom (end of the pre-allocated
space) to top (start of the pre-allocated space).
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help