From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH net-next] bnx2x: dont use netdev_alloc_skb() Date: Tue, 12 Oct 2010 01:22:43 +0200 Message-ID: <1286839363.30423.130.camel@edumazet-laptop> References: <1286838210.30423.128.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev , Michael Chan , Eilon Greenstein To: David Miller Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:63132 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752691Ab0JKXXD (ORCPT ); Mon, 11 Oct 2010 19:23:03 -0400 Received: by wwj40 with SMTP id 40so4313791wwj.1 for ; Mon, 11 Oct 2010 16:23:02 -0700 (PDT) In-Reply-To: <1286838210.30423.128.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: Le mardi 12 octobre 2010 =C3=A0 01:03 +0200, Eric Dumazet a =C3=A9crit = : > netdev_alloc_skb() is a very wrong interface, really. >=20 > We should remove/deprecate it. >=20 > For multi queue devices, it makes more sense to allocate skb on local > node of the cpu handling RX interrupts. This allow each cpu to > manipulate its own slub/slab queues/structures without doing expensiv= e > cross-node business. >=20 > For non multi queue devices, IRQ affinity should be set so that a cpu > close to the device services interrupts. Even if not set, using > dev_alloc_skb() is faster. >=20 > Signed-off-by: Eric Dumazet Or maybe revert : commit b30973f877fea1a3fb84e05599890fcc082a88e5 Author: Christoph Hellwig Date: Wed Dec 6 20:32:36 2006 -0800 [PATCH] node-aware skb allocation =20 Node-aware allocation of skbs for the receive path. =20 Details: =20 - __alloc_skb gets a new node argument and cals the node-aware slab functions with it. - netdev_alloc_skb passed the node number it gets from dev_to_nod= e to it, everyone else passes -1 (any node) =20 Signed-off-by: Christoph Hellwig Cc: Christoph Lameter Cc: "David S. Miller" Signed-off-by: Andrew Morton Apparently, only Christoph and Andrew signed it.