Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60996 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695Ab3GAMNY (ORCPT ); Mon, 1 Jul 2013 08:13:24 -0400 Date: Mon, 1 Jul 2013 14:15:53 +0200 From: Stanislaw Gruszka To: Eric Dumazet Cc: Paul Stewart , "John W. Linville" , "Steinar H. Gunderson" , linux-wireless , netdev Subject: Re: [PATCH v3] iwl3945: better skb management in rx path Message-ID: <20130701121552.GA1747@redhat.com> (sfid-20130701_141331_727749_4A486782) References: <1372421021.3301.263.camel@edumazet-glaptop> <1372431024.3301.277.camel@edumazet-glaptop> <1372431906.3301.283.camel@edumazet-glaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1372431906.3301.283.camel@edumazet-glaptop> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, Jun 28, 2013 at 08:05:06AM -0700, Eric Dumazet wrote: > From: Eric Dumazet > > Steinar reported reallocations of skb->head with IPv6, leading to > a warning in skb_try_coalesce() > > It turns out iwl3945 has several problems : > > 1) skb->truesize is underestimated. > We really consume PAGE_SIZE bytes for a fragment, > not the frame length. > 2) 128 bytes of initial headroom is a bit low and forces reallocations. > 3) We can avoid consuming a full page for small enough frames. > > Reported-by: Steinar H. Gunderson > Signed-off-by: Eric Dumazet > Cc: Paul Stewart Acked-by: Stanislaw Gruszka FYI, I'll post 4965 version soon.