net: Pass max frags into skb_append_pagefrags()
authorDavid Howells <dhowells@redhat.com>
Mon, 22 May 2023 12:11:11 +0000 (13:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 May 2023 03:48:27 +0000 (20:48 -0700)
commit96449f90240713bd9bd653d6b15266a1044cfa7b
treef9b649089c1dbbabb68eb687ffe61edd2b376631
parentb841b901c452d92610f739a36e54978453528876
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>
include/linux/skbuff.h
net/core/skbuff.c
net/ipv4/ip_output.c
net/unix/af_unix.c