From owner-freebsd-net@FreeBSD.ORG Mon Jan 13 03:22:50 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D95B6809 for ; Mon, 13 Jan 2014 03:22:50 +0000 (UTC) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id C296D1CA3 for ; Mon, 13 Jan 2014 03:22:50 +0000 (UTC) Received: from [10.0.1.3] (c-24-6-115-18.hsd1.ca.comcast.net [24.6.115.18]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id BBC643983B; Sun, 12 Jan 2014 19:22:48 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: Mbuf reference count From: Rui Paulo In-Reply-To: Date: Sun, 12 Jan 2014 19:22:47 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Venkata Duvvuru X-Mailer: Apple Mail (2.1827) Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 03:22:50 -0000 On 2 Jan 2014, at 06:26, Venkata Duvvuru = wrote: > Hi, > Is there a way to increase the reference count of mbuf? I see there is = a ref count for external storage (m_ext) but couldn't find one for = !M_EXT case. The idea was to reference count the mbufs with external storage so that = m_copym() would avoid copying. Why do you need to reference count an = mbuf? mbufs are usually short lived and I haven't encountered any = situation yet where reference counting an mbuf would help. -- Rui Paulo