Re: [bpf-next PATCH 01/16] sock: make static tls function alloc_sg generic sock helper

2018-03-05 Thread David Miller
From: John Fastabend Date: Mon, 05 Mar 2018 11:51:01 -0800 > The TLS ULP module builds scatterlists from a sock using > page_frag_refill(). This is going to be useful for other ULPs > so move it into sock file for more general use. > > In the process remove useless goto at end of while loop. >

[bpf-next PATCH 01/16] sock: make static tls function alloc_sg generic sock helper

2018-03-05 Thread John Fastabend
The TLS ULP module builds scatterlists from a sock using page_frag_refill(). This is going to be useful for other ULPs so move it into sock file for more general use. In the process remove useless goto at end of while loop. Signed-off-by: John Fastabend --- include/net/sock.h |4 +++ net/co