[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170425.115757.702639212104220856.davem@davemloft.net>
Date: Tue, 25 Apr 2017 11:57:57 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ast@...com
Cc: daniel@...earbox.net, qinteng@...com, netdev@...r.kernel.org,
kernel-team@...com
Subject: Re: [PATCH net-next] bpf: map_get_next_key to return first key on
NULL
From: Alexei Starovoitov <ast@...com>
Date: Mon, 24 Apr 2017 19:00:37 -0700
> From: Teng Qin <qinteng@...com>
>
> When iterating through a map, we need to find a key that does not exist
> in the map so map_get_next_key will give us the first key of the map.
> This often requires a lot of guessing in production systems.
>
> This patch makes map_get_next_key return the first key when the key
> pointer in the parameter is NULL.
>
> Signed-off-by: Teng Qin <qinteng@...com>
> Signed-off-by: Alexei Starovoitov <ast@...nel.org>
> Acked-by: Daniel Borkmann <daniel@...earbox.net>
Applied, thanks Alexei.
Powered by blists - more mailing lists