Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161383AbWHDTmp (ORCPT ); Fri, 4 Aug 2006 15:42:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161363AbWHDTmp (ORCPT ); Fri, 4 Aug 2006 15:42:45 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:56737 "EHLO 2ka.mipt.ru") by vger.kernel.org with ESMTP id S932605AbWHDTmo (ORCPT ); Fri, 4 Aug 2006 15:42:44 -0400 Date: Fri, 4 Aug 2006 23:42:11 +0400 From: Evgeniy Polyakov To: Chris Leech Cc: Herbert Xu , arnd@arndnet.de, olel@ans.pl, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: problems with e1000 and jumboframes Message-ID: <20060804194209.GA25167@2ka.mipt.ru> References: <41b516cb0608031334s6e159e99tb749240f44ae608d@mail.gmail.com> <20060804061513.GB413@2ka.mipt.ru> <41b516cb0608040834o1d433f23v2f2ba1a1b05ccbc6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <41b516cb0608040834o1d433f23v2f2ba1a1b05ccbc6@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.5 (2ka.mipt.ru [0.0.0.0]); Fri, 04 Aug 2006 23:42:15 +0400 (MSD) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 851 Lines: 20 On Fri, Aug 04, 2006 at 08:34:46AM -0700, Chris Leech (chris.leech@gmail.com) wrote: > So how many skb allocation schemes do you code into a single driver? > Kmalloc everything, page alloc everything, combination of kmalloc and > page buffers for hardware that does header split? That's three > versions of the drivers receive processing and skb allocation that > need to be maintained. At least try to create scheme which will not end up in 32k allocation in atomic context. Generally I would recommend to use frag_list as much as possible (or you can reuse skb list). > - Chris -- Evgeniy Polyakov - 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/