Re: [PATCH v2 net-next] tcp: avoid expensive pskb_expand_head() calls

Eric Dumazet
2012-04-19T17:25:13Z

On Thu, 2012-04-19 at 10:20 -0700, Rick Jones wrote:

> By copying them to smaller buffers? Or just by altering truesize?
> Wasn't the whole point of fixing all the broken truesize settings to
> accurately account for memory consumed?

I checked, their truesize are OK (1024+256) for ixgbe driver.
They could be little smaller, but not that much. (512 + 256)

No, its only the sk_rcvbuf is small for a tcp sender,
and sk_add_backlog() makes sure we dont queue more than sk_rcvbuf bytes
in backlog.