From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935274AbXGWUVR (ORCPT ); Mon, 23 Jul 2007 16:21:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932398AbXGWUUP (ORCPT ); Mon, 23 Jul 2007 16:20:15 -0400 Received: from sca-es-mail-1.Sun.COM ([192.18.43.132]:42707 "EHLO sca-es-mail-1.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764517AbXGWUUK (ORCPT ); Mon, 23 Jul 2007 16:20:10 -0400 Date: Mon, 23 Jul 2007 13:05:06 -0700 From: Yinghai Lu Subject: [PATCH 4/10] net: use numa_node in net_devcice->dev instead of parent To: Andi Kleen , Andrew Morton Cc: Linux Kernel Mailing List , Stephen Hemminger Reply-to: Yinghai Lu Message-id: <200707231305.06825.yinghai.lu@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.8.2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [PATCH 4/10] 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);