Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756753AbYBSLPv (ORCPT ); Tue, 19 Feb 2008 06:15:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759462AbYBSLNj (ORCPT ); Tue, 19 Feb 2008 06:13:39 -0500 Received: from sca-es-mail-1.Sun.COM ([192.18.43.132]:55053 "EHLO sca-es-mail-1.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757827AbYBSLNc (ORCPT ); Tue, 19 Feb 2008 06:13:32 -0500 Date: Tue, 19 Feb 2008 03:20:58 -0800 From: Yinghai Lu Subject: [PATCH 6/8] net: use numa_node in net_devcice->dev instead of parent In-reply-to: <200802190311.44404.yinghai.lu@sun.com> To: Ingo Molnar Cc: Greg KH , Andrew Morton , Jeff Garzik , Linux Kernel Mailing List Message-id: <200802190320.58561.yinghai.lu@sun.com> Organization: Sun MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline References: <200802190311.44404.yinghai.lu@sun.com> User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 21 Signed-off-by: Yinghai Lu Index: linux-2.6/net/core/skbuff.c =================================================================== --- linux-2.6.orig/net/core/skbuff.c +++ linux-2.6/net/core/skbuff.c @@ -252,7 +252,7 @@ nodata: struct sk_buff *__netdev_alloc_skb(struct net_device *dev, unsigned int length, gfp_t gfp_mask) { - int node = dev->dev.parent ? dev_to_node(dev->dev.parent) : -1; + int node = dev_to_node(&dev->dev); struct sk_buff *skb; skb = __alloc_skb(length + NET_SKB_PAD, gfp_mask | __GFP_NOTRACK, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/