[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090608.002231.101760669.davem@davemloft.net>
Date: Mon, 08 Jun 2009 00:22:31 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] net: skb_shared_info optimization
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 05 Jun 2009 16:04:16 +0200
> skb_dma_unmap() is quite expensive for small packets,
> because we use two different cache lines from skb_shared_info.
>
> One to access nr_frags, one to access dma_maps[0]
>
> Instead of dma_maps being an array of MAX_SKB_FRAGS + 1 elements,
> let dma_head alone in a new dma_head field, close to nr_frags,
> to reduce cache lines misses.
>
> Tested on my dev machine (bnx2 & tg3 adapters), nice speedup !
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks.
--
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