diff options
| author | David Howells <[email protected]> | 2023-06-23 22:54:59 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-06-24 22:50:12 +0000 |
| commit | c729ed6f5be57b4d164dbbc415554c066e29306b (patch) | |
| tree | d9d2fb16f38c9b0756e7df5f355303e17d92d8a6 /net/unix/af_unix.c | |
| parent | tcp_bpf, smc, tls, espintcp, siw: Reduce MSG_SENDPAGE_NOTLAST usage (diff) | |
| download | kernel-c729ed6f5be57b4d164dbbc415554c066e29306b.tar.gz kernel-c729ed6f5be57b4d164dbbc415554c066e29306b.zip | |
net: Use sendmsg(MSG_SPLICE_PAGES) not sendpage in skb_send_sock()
Use sendmsg() with MSG_SPLICE_PAGES rather than sendpage in
skb_send_sock(). This causes pages to be spliced from the source iterator
if possible.
This allows ->sendpage() to be replaced by something that can handle
multiple multipage folios in a single transaction.
Note that this could perhaps be improved to fill out a bvec array with all
the frags and then make a single sendmsg call, possibly sticking the header
on the front also.
Signed-off-by: David Howells <[email protected]>
cc: Jens Axboe <[email protected]>
cc: Matthew Wilcox <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
