[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH3MdRX5cjEpHAkq590h8Zk9O3xiq_4NQ4iXDNW6KHwKfgYNbg@mail.gmail.com>
Date: Thu, 18 Oct 2018 22:32:48 -0700
From: Y Song <ys114321@...il.com>
To: mcroce@...hat.com
Cc: netdev <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>
Subject: Re: [PATCH bpf-next 1/2] samples: bpf: improve xdp1 example
On Thu, Oct 18, 2018 at 1:48 PM Matteo Croce <mcroce@...hat.com> wrote:
>
> Store only the total packet count for every protocol, instead of the
> whole per-cpu array.
> Use bpf_map_get_next_key() to iterate the map, instead of looking up
> all the protocols.
>
> Signed-off-by: Matteo Croce <mcroce@...hat.com>
Acked-by: Yonghong Song <yhs@...com>
Powered by blists - more mailing lists