[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1efe2357-43aa-8976-75a0-62d4572287cc@fb.com>
Date: Wed, 23 Aug 2017 18:25:38 -0700
From: Alexei Starovoitov <ast@...com>
To: Daniel Borkmann <daniel@...earbox.net>, <davem@...emloft.net>
CC: <john.fastabend@...il.com>, <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] bpf: netdev is never null in __dev_map_flush
On 8/23/17 6:20 PM, Daniel Borkmann wrote:
> No need to test for it in fast-path, every dev in bpf_dtab_netdev
> is guaranteed to be non-NULL, otherwise dev_map_update_elem() will
> fail in the first place.
>
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
wow. interesting. I'm surprised you see a difference from
such micro-optimization.
Acked-by: Alexei Starovoitov <ast@...nel.org>
Powered by blists - more mailing lists