From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932339AbXGKADv (ORCPT ); Tue, 10 Jul 2007 20:03:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760407AbXGKACQ (ORCPT ); Tue, 10 Jul 2007 20:02:16 -0400 Received: from sca-es-mail-2.Sun.COM ([192.18.43.133]:38494 "EHLO sca-es-mail-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763628AbXGKACM (ORCPT ); Tue, 10 Jul 2007 20:02:12 -0400 Date: Tue, 10 Jul 2007 17:05:27 -0700 From: Yinghai Lu Subject: [PATCH 2/5] net: use numa_node in net_devcice->dev instead of parent In-reply-to: <200707101641.17672.yinghai.lu@sun.com> To: Andrew Morton , Andi Kleen , Greg KH , rientjes@google.com, Christoph Lameter , Christoph Hellwig , David Miller , Stefan Richter Cc: Linux Kernel Mailing List , netdev@vger.kernel.org Reply-to: Yinghai Lu Message-id: <200707101705.27958.yinghai.lu@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline References: <200707101641.17672.yinghai.lu@sun.com> User-Agent: KMail/1.8.2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [PATCH 2/5] net: use numa_node in net_devcice->dev instead of parent Signed-off-by: Yinghai Lu diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 27cfe5f..005cc1c 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -217,7 +217,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, 0, node);