diff options
author | David Howells <dhowells@redhat.com> | 2023-05-22 15:11:11 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-05-24 06:48:27 +0300 |
commit | 96449f90240713bd9bd653d6b15266a1044cfa7b (patch) | |
tree | f9b649089c1dbbabb68eb687ffe61edd2b376631 /net/unix | |
parent | b841b901c452d92610f739a36e54978453528876 (diff) | |
download | linux-96449f90240713bd9bd653d6b15266a1044cfa7b.tar.xz |
net: Pass max frags into skb_append_pagefrags()
Pass the maximum number of fragments into skb_append_pagefrags() rather
than using MAX_SKB_FRAGS so that it can be used from code that wants to
specify sysctl_max_skb_frags.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: David Ahern <dsahern@kernel.org>
cc: Jens Axboe <axboe@kernel.dk>
cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index cc695c9f09ec..dd55506b4632 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2349,7 +2349,7 @@ alloc_skb: newskb = NULL; } - if (skb_append_pagefrags(skb, page, offset, size)) { + if (skb_append_pagefrags(skb, page, offset, size, MAX_SKB_FRAGS)) { tail = skb; goto alloc_skb; } |