Re: [net PATCH 2/3] bpf: add support for sockmap detach programs

2017-09-08 Thread Alexei Starovoitov
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

[net PATCH 2/3] bpf: add support for sockmap detach programs

2017-09-08 Thread John Fastabend
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 additio