[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120316.015230.503523246344631871.davem@davemloft.net>
Date: Fri, 16 Mar 2012 01:52:30 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
netdev@...r.kernel.org, aurel@...age.org, trond@...omium.org,
grundler@...omium.org, pstew@...omium.org
Subject: Re: [PATCH net-next] asix: asix_rx_fixup surgery to reduce skb
truesizes
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 14 Mar 2012 23:18:32 -0700
> 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 <eric.dumazet@...il.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists