On Fri, Jul 07, 2006 at 04:55:27PM -0700, David Miller wrote: > From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Fri, 7 Jul 2006 15:52:55 -0700 > > > What is the point of dev_alloc_skb anyway? all it does is add header space. > > In stone-age times it actually had specific semantics, but yes today > it is just a synonym. > > It's going to be hard to get rid of it, every single network driver > out there references it.
On powerpc64 it actually makes a difference because it now allocates the right headerspace as pad to ge the higher layer protocol headers aligned for best dma performance. Now what lead me up to this patch is something else. On the Cell hardware we badly need to allocate rx buffers on the local node, because the access to memory on a different node is horrible slow (thank rambus!) My plan is to give dev_alloc_skb a struct netdevice * argument and introduce a alloc_netdev_node so the driver can tell what node the device is on. This gives a significant speedup for cell. I already have this implemented in fact but only converted a handfull of drivers. Does this approach sound okay? - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html