commit | 2c3682f0be97a5f57c6c8b40fa154dfc77efb461 | [log] [tgz] |
---|---|---|
author | John Fastabend <john.fastabend@gmail.com> | Sun Mar 18 12:56:49 2018 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Mon Mar 19 21:14:38 2018 +0100 |
tree | 186c43b0505e50aec6c151e5645fed98add35c8c | |
parent | 318df9f01cffabf120b36daa96dfca273e46cbbf [diff] |
sock: make static tls function alloc_sg generic sock helper 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 <john.fastabend@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>