Skip to content
Commit a715dea3 authored by Anton Blanchard's avatar Anton Blanchard Committed by David S. Miller
Browse files

net: Always allocate at least 16 skb frags regardless of page size



When analysing performance of the cxgb3 on a ppc64 box I noticed that
we weren't doing much GRO merging. It turns out we are limited by the
number of SKB frags:

#define MAX_SKB_FRAGS (65536/PAGE_SIZE + 2)

With a 4kB page size we have 18 frags, but with a 64kB page size we
only have 3 frags.

I ran a single stream TCP bandwidth test to compare the performance of

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4910ac6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment