From patchwork Sat Jun 5 14:56:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 104465 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o55Eukqo001721 for ; Sat, 5 Jun 2010 14:56:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933365Ab0FEO4V (ORCPT ); Sat, 5 Jun 2010 10:56:21 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:33185 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933305Ab0FEO4T (ORCPT ); Sat, 5 Jun 2010 10:56:19 -0400 Received: by wwc33 with SMTP id 33so187230wwc.19 for ; Sat, 05 Jun 2010 07:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=4WVu2ScuvZgLzg+dXnOAe8TXc1f5eHkHsR7jUiKhGxU=; b=KNa0uDAWknOXoG9lO//ZYthTUJ2GMAya1FyOZtF4TFUa0NN2Mqu+wORGoFEEmTeTf1 JDMI/udgsINa4HN0bIR1+s5M1ysZa5xsLKG4VzDFZyIeDGvUPDMNU400OnSnDjmk3Zit lIDbYNvZe4aVRDiz6hDq++qkpVufWZlPjRvRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=GggHTZfzAaTlRehWQx+TPFTxNoXB/ZXAGKJFJ9CLyEhFlMH+pjCf10QKlWqHspCmFk XO9Ra/XUlSYlhmYLK16IrLLZcFNn2MohNR8Sn6R7TP+5D2nPlJEUdkB9aKGpD4bHEPsK Lcp1rtkTzozOaraoKMtBmPsAbBosho1mElyxU= Received: by 10.227.69.84 with SMTP id y20mr11959368wbi.226.1275749777867; Sat, 05 Jun 2010 07:56:17 -0700 (PDT) Received: from [127.0.0.1] ([85.17.35.125]) by mx.google.com with ESMTPS id u36sm19892755wbv.18.2010.06.05.07.56.15 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Jun 2010 07:56:17 -0700 (PDT) Subject: Re: [RFC PATCH v7 11/19] Use callback to deal with skb_release_data() specially. From: Eric Dumazet To: xiaohui.xin@intel.com Cc: netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, mingo@elte.hu, davem@davemloft.net, herbert@gondor.hengli.com.au, jdike@linux.intel.com In-Reply-To: <1275732899-5423-11-git-send-email-xiaohui.xin@intel.com> References: <1275732899-5423-1-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-2-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-3-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-4-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-5-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-6-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-7-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-8-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-9-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-10-git-send-email-xiaohui.xin@intel.com> <1275732899-5423-11-git-send-email-xiaohui.xin@intel.com> Date: Sat, 05 Jun 2010 16:56:13 +0200 Message-ID: <1275749773.5238.244.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 05 Jun 2010 14:56:47 +0000 (UTC) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index bf243fc..b136d90 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -202,10 +202,11 @@ struct skb_shared_info { */ atomic_t dataref; - skb_frag_t frags[MAX_SKB_FRAGS]; /* Intermediate layers must ensure that destructor_arg * remains valid until skb destructor */ void * destructor_arg; + + skb_frag_t frags[MAX_SKB_FRAGS]; }; /* We divide dataref into two halves. The higher 16 bits hold references