Re: [net-next PATCH] bpf: sockmap update/simplify memory accounting scheme

2017-09-01 Thread David Miller
From: John Fastabend Date: Fri, 01 Sep 2017 11:29:26 -0700 > Instead of tracking wmem_queued and sk_mem_charge by incrementing > in the verdict SK_REDIRECT paths and decrementing in the tx work > path use skb_set_owner_w and sock_writeable helpers. This solves > a few issues with the current code

Re: [net-next PATCH] bpf: sockmap update/simplify memory accounting scheme

2017-09-01 Thread Alexei Starovoitov
On 9/1/17 11:29 AM, John Fastabend wrote: Instead of tracking wmem_queued and sk_mem_charge by incrementing in the verdict SK_REDIRECT paths and decrementing in the tx work path use skb_set_owner_w and sock_writeable helpers. This solves a few issues with the current code. First, in SK_REDIRECT i

[net-next PATCH] bpf: sockmap update/simplify memory accounting scheme

2017-09-01 Thread John Fastabend
Instead of tracking wmem_queued and sk_mem_charge by incrementing in the verdict SK_REDIRECT paths and decrementing in the tx work path use skb_set_owner_w and sock_writeable helpers. This solves a few issues with the current code. First, in SK_REDIRECT inc on sk_wmem_queued and sk_mem_charge were