From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) by dpdk.org (Postfix) with ESMTP id 15B746A22 for ; Mon, 6 May 2013 18:13:49 +0200 (CEST) Received: by mail-wi0-f176.google.com with SMTP id hq12so2727222wib.15 for ; Mon, 06 May 2013 09:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id:x-gm-message-state; bh=zMV1QzvBRbmgHNMfkqJGD0o2gagVhLC2vPWp10aPDPU=; b=CFMoqtvE1q1Umqyrw6Q0xQOVlePD0oHpBtLuEcQlUY7aR3UByEfkz5ndCEINXKpPej i5Vo26Bm7tZHRB2CZl40NCsIwj11B6bGqHPUwWcXxcXDT/hCaGO+18kiClrhEksO/LCZ JjEcFTNL8cNmGg+nQ05Rbpg2Pnd0Br03yZnYOduV1PRdFVFOpOsDNYdCZWiRLxnGAWpd O/Ji+QmJ/2P2NbqxXloSqRPupYy9YE/6fjZpw3hXqFkAkoghGAHvl1KZd4UV8/srPVJ1 HOkpg2wyufQhi15xwWD4d9IUYKeXaMpho/lWQChvK7SltSRudp8ryM7WgB7IXETXgTT7 s02A== X-Received: by 10.194.78.204 with SMTP id d12mr26117054wjx.42.1367856830179; Mon, 06 May 2013 09:13:50 -0700 (PDT) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id i4sm14720089wix.10.2013.05.06.09.13.48 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 09:13:49 -0700 (PDT) From: Thomas Monjalon Organization: 6WIND To: "Han, Dongsu" Date: Mon, 6 May 2013 18:13:50 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: <20130506135616.GN12221@6wind.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201305061813.50527.thomas.monjalon@6wind.com> X-Gm-Message-State: ALoCoQnSZHpmG33r76e4cuSJmB9T1VaGsEo8iNtTC4sF8jFZ35qUnfdDHQAyR9VGjRijQfXQb9Wo Cc: dev@dpdk.org Subject: Re: [dpdk-dev] app: fix refcnt in mbuf allocation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 16:13:50 -0000 06/05/2013 17:47, Han, Dongsu : > In addition to this, we should probably clone pkt mbuf using > rte_pktmbuf_clone() > and transmit the cloned packet. This will avoid having to copy the mac and > IP headers. Yes, it could be faster but it is not always possible because rte_pktmbuf_clone() is available only if the feature RTE_MBUF_SCATTER_GATHER is enabled. -- Thomas