From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f172.google.com (mail-pf0-f172.google.com [209.85.192.172]) by dpdk.org (Postfix) with ESMTP id C73C495D5 for ; Thu, 4 Feb 2016 01:49:11 +0100 (CET) Received: by mail-pf0-f172.google.com with SMTP id w123so24633399pfb.0 for ; Wed, 03 Feb 2016 16:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=h13BA7jlwKTha2Almc3xYCdbGSqI3mEXAC9cEvvcdcI=; b=GsumrocoTU7y92PNQ397ZwBIEhBfm5tEu4rcg75Hyp6yjgbu3e1QzCw0ISe5hy8HRy bzH9n3blTyMVQkVrznULog7eh55xvriR5FEJt+/JaiTsEbS1x/4PxuFMpUA4BkcGpRFS 34TB+1KNIkvdqnK5ZWc6ngCQNQYDY9ESGFD9Z877W3BQJpOH9fBH621ic5Bnsn7fuQsC gFhWT+lZbpCxpA8NO0U+tZmZIgSQLBeDicOLrK56fnBhm1Tr2eGIBdCGZ9iJvRmYOmKL hTVz7tHV4+MOLd92OLahkPGjmjTDHBHi5Z5cy5w9E2u4fojGzPvU+UeWqEtkkympp5CB AIMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=h13BA7jlwKTha2Almc3xYCdbGSqI3mEXAC9cEvvcdcI=; b=a/JxBmLngra+/fdoJYiN+Lod8b1ScUKvhUiqYpOgdthpCtQx2EE6nx2QJLgltLefid SucdzmRdvevqoooqORWF2v4FJkNHNYg3tzd7VFwaQ8TOtGkFZzDwMjgMK6wfg4l4vJtt A45pvIWfQcn28tBYbtNKMPOoLkqYVx6STzxTk3DmKGJqJ2f/LVUW8ZI6ub6gxoY1EdcO 9YxU0QUfHVofmdciRvu2KNXkl9zyPjFSWr8GmHJI9YaGxzxm41TAocCgNzpUnyynxjed 9WjhM41Uo/bULmrFc2iH4a45sLZOGSdNHIyyx9ZZMK9CDq7XVhwzZra4IjiiUyb+gfGz b4uQ== X-Gm-Message-State: AG10YORBWpyWyRkMDCO5C39oQjd/lFhxNgCtuTe3x/V9UHylG8N/GdQbiExbblAUP2ZGtQ== X-Received: by 10.98.7.219 with SMTP id 88mr6891186pfh.49.1454546951195; Wed, 03 Feb 2016 16:49:11 -0800 (PST) Received: from samsung9 ([138.44.251.21]) by smtp.gmail.com with ESMTPSA id xv2sm12498190pab.10.2016.02.03.16.49.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Feb 2016 16:49:10 -0800 (PST) Date: Thu, 4 Feb 2016 11:49:01 +1100 From: Stephen Hemminger To: Olivier MATZ Message-ID: <20160204114901.2bbfb477@samsung9> In-Reply-To: References: <1436485068-30609-1-git-send-email-stephen@networkplumber.org> <1436485068-30609-2-git-send-email-stephen@networkplumber.org> <7ADD74816B4C8A45B56203CBA65FE5A63346A5A4@IRSMSX107.ger.corp.intel.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , Mike Davison , Stephen Hemminger Subject: Re: [dpdk-dev] [PATCH 1/2] mbuf: Add rte_pktmbuf_copy 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: Thu, 04 Feb 2016 00:49:12 -0000 On Wed, 3 Feb 2016 17:23:05 +0000 Olivier MATZ wrote: > + } while ((md = md->next) != NULL); > >> + > >> + *prev = NULL; > > why this? This is null terminating the linked list of segments.