aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2012-03-14 20:18:32 +0000
committerDavid S. Miller <[email protected]>2012-03-16 01:52:13 -0700
commita9e0aca4b37885b5599e52211f098bd7f565e749 (patch)
tree7f4edd4ed8a96bfccca216ef4ce84d29d6049f9d /net/lapb/lapb_iface.c
parent1174764e810998e81b334b5ccdfad8a9d059c6a1 (diff)
asix: asix_rx_fixup surgery to reduce skb truesizes
asix_rx_fixup() is complex, and does some unnecessary memory copies (at least on x86 where NET_IP_ALIGN is 0) Also, it tends to provide skbs with a big truesize (4096+256 with MTU=1500) to upper stack, so incoming trafic consume a lot of memory and I noticed early packet drops because we hit socket rcvbuf too fast. Switch to a different strategy, using copybreak so that we provide nice skbs to upper stack (including the NET_SKB_PAD to avoid future head reallocations in some paths) With this patch, I no longer see packets drops or tcp collapses on various tcp workload with a AX88772 adapter. Signed-off-by: Eric Dumazet <[email protected]> Cc: Aurelien Jacobs <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Trond Wuellner <[email protected]> Cc: Grant Grundler <[email protected]> Cc: Paul Stewart <[email protected]> Reviewed-by: Grant Grundler <[email protected]> Reviewed-by: Grant Grundler <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions