[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dc489498-4517-9528-822a-f5edb5a132ad@netronome.com>
Date: Tue, 10 Apr 2018 13:54:27 +0100
From: Jiong Wang <jiong.wang@...ronome.com>
To: Edward Cree <ecree@...arflare.com>,
Alexei Starovoitov <alexei.starovoitov@...il.com>,
Daniel Borkmann <daniel@...earbox.net>
Cc: netdev@...r.kernel.org
Subject: Re: [RFC PATCH v3 bpf-next 4/5] bpf/verifier: use call graph to
efficiently check max stack depth
On 06/04/2018 18:14, Edward Cree wrote:
<snip>
> Since that algorithm selects
> + * nodes in the order of the sorted output, we can do our processing in the loop
> + * that does the tsort, rather than storing the sorted list and then having a
> + * second loop to iterate over it and compute the total_stack_depth values.
> */
IMO, seperate the sort from depth calculation is better than combining
them. The tsort of call graph could potentially be used in other places.
Powered by blists - more mailing lists