[PATCH v3] net:Add sysctl_max_skb_frags

2016-02-03 Thread Hans Westgaard Ry
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 Reviewed-by: Håkon Bugge --- include/linux/skbuff.h | 1 + net/core/skbuff.c | 2 ++ net/core/sysctl_net_core.c | 10 ++ net

Re: [PATCH v2] net:Add sysctl_tcp_sg_max_skb_frags

2016-02-01 Thread Hans Westgaard Ry
On 01/27/2016 07:12 PM, Hannes Frederic Sowa wrote: On 27.01.2016 16:15, Eric Dumazet wrote: If it is a common one, it should be /proc/sys/net/core/... instead of /proc/sys/net/ipv4/tcp_ > Other providers include : 1) GRO stack 2) callers of sock_alloc_send_pskb(), alloc_skb_with_frags

[PATCH v2] net:Add sysctl_tcp_sg_max_skb_frags

2016-01-27 Thread Hans Westgaard Ry
may thereby violate the max for certain devices. The patch introduces a global variable as max number of fragments in scatter/gather. Signed-off-by: Hans Westgaard Ry Reviewed-by: Håkon Bugge --- include/net/tcp.h | 2 ++ net/ipv4/sysctl_net_ipv4.c | 10 ++ net/ipv4/tcp.c

[PATCH] net: add per device sg_max_frags for skb

2016-01-06 Thread Hans Westgaard Ry
SGE resulting in kernel-panic. The patch allows the device to limit the maximum number fragments used in one skb. The functionality corresponds to gso_max_size/gso_max_segs for gso. Signed-off-by: Hans Westgaard Ry Reviewed-by: Håkon Bugge Reviewed-by: Knut Omang Reviewed-by: Wei Lin Guay