[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180628140503.555a5ba5@cakuba.netronome.com>
Date: Thu, 28 Jun 2018 14:05:03 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Jiong Wang <jiong.wang@...ronome.com>
Cc: Song Liu <liu.song.a23@...il.com>,
Alexei Starovoitov <alexei.starovoitov@...il.com>,
Daniel Borkmann <daniel@...earbox.net>,
oss-drivers@...ronome.com, Networking <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next 2/7] lib: reciprocal_div: implement the
improved algorithm on the paper mentioned
On Thu, 28 Jun 2018 20:02:43 +0100, Jiong Wang wrote:
> > If that's the case, we should at least add a WARNING on the slow path.
>
> OK, I will add a pr_warn inside "reciprocal_value_adv" when l == 32 is
> triggered.
WARN() seems useful, given seeing l == 32 means the code calling this
function is buggy, and we want to see the back trace to figure out how
it happened.
Powered by blists - more mailing lists