]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net:Add sysctl_max_skb_frags
authorHans Westgaard Ry <hans.westgaard.ry@oracle.com>
Wed, 3 Feb 2016 08:26:57 +0000 (09:26 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 20 Mar 2016 07:01:04 +0000 (00:01 -0700)
commit0fae5cee3bd7f49d29dab708a4bd3d0ce4185581
tree19aea14c6486b669b0d4587fc532e80a45ce152b
parent261085ace328efd78bbe4994e09a393c28fd2dc8
net:Add sysctl_max_skb_frags

Devices may have limits on the number of fragments in an skb they support.
Current codebase uses a constant as maximum for number of fragments one
skb can hold and use.
When enabling scatter/gather and running traffic with many small messages
the codebase uses the maximum number of fragments and may thereby violate
the max for certain devices.
The patch introduces a global variable as max number of fragments.

Signed-off-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5f74f82ea34c0da80ea0b49192bb5ea06e063593)

Orabug : 22899899

Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
include/linux/skbuff.h
net/core/skbuff.c
net/core/sysctl_net_core.c
net/ipv4/tcp.c