[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4876e2ef-b093-cfb6-c1fd-c7f44ff891bb@fb.com>
Date: Fri, 8 Sep 2017 15:38:47 -0700
From: Alexei Starovoitov <ast@...com>
To: John Fastabend <john.fastabend@...il.com>, <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <daniel@...earbox.net>
Subject: Re: [net PATCH 2/3] bpf: add support for sockmap detach programs
On 9/8/17 2:00 PM, John Fastabend wrote:
> The bpf map sockmap supports adding programs via attach commands. This
> patch adds the detach command to keep the API symmetric and allow
> users to remove previously added programs. Otherwise the user would
> have to delete the map and re-add it to get in this state.
>
> This also adds a series of additional tests to capture detach operation
> and also attaching/detaching invalid prog types.
>
> API note: socks will run (or not run) programs depending on the state
> of the map at the time the sock is added. We do not for example walk
> the map and remove programs from previously attached socks.
>
> Acked-by: Daniel Borkmann <daniel@...earbox.net>
> Signed-off-by: John Fastabend <john.fastabend@...il.com>
Nice clean patch. Thx
Acked-by: Alexei Starovoitov <ast@...nel.org>
Powered by blists - more mailing lists