From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 8B7657F74 for ; Wed, 5 Nov 2014 22:58:21 +0100 (CET) Received: by mail-wg0-f54.google.com with SMTP id n12so2006053wgh.41 for ; Wed, 05 Nov 2014 14:07:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=G3IZOdMA7Kk0uQC2I6nFyNC+u/PIPI1t+QYxno76PDs=; b=NRg4+Rfm11SUc2yPOpYx5qKfEIoni7wQs6XlZeYkxdNODyD85JKbt93GQ7qumnh8fW KKlh8K/pk6llCqenakMyLBjRlhlYplYvtBNeVZ2pXt7zgSPNj1oHK1KALAf6xwlIyBtk 8QydFgj0u76Vbo6Dt3j9IT8mQGwfW77PMyJmCQYPrdQBtZlh97EiYwphCuzDsl0wVxyN NbsfRTtcw2e/7QxBQy0SAX6nEpoQtIVmflgcmfdB9X08DYDlXwyhNp6QTr7WpybTj4Do 1UC0pSzf24TW7pVG1OU92/nwcXsn5mD9uVYKiXx+bOr4Acpi4/+GEOnQNA/HNhLm/KGB eu0g== X-Gm-Message-State: ALoCoQmAsLZsKfdklMJIrW3kFXmzO8ifGyRT0X2ZlwKD0Kdt/izfB16tL9FI8Kw6hMRdhPMj8Fx/ X-Received: by 10.180.73.173 with SMTP id m13mr4031846wiv.10.1415225266243; Wed, 05 Nov 2014 14:07:46 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id 4sm5517424wjx.39.2014.11.05.14.07.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Nov 2014 14:07:45 -0800 (PST) From: Thomas Monjalon To: "Ouyang, Changchun" Date: Wed, 05 Nov 2014 23:07:26 +0100 Message-ID: <13227110.0ai4sDARZL@xps13> Organization: 6WIND User-Agent: KMail/4.14.2 (Linux/3.17.2-1-ARCH; KDE/4.14.2; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB977258213A27BD@IRSMSX105.ger.corp.intel.com> References: <1415084708-8192-1-git-send-email-changchun.ouyang@intel.com> <1415171435-24252-1-git-send-email-changchun.ouyang@intel.com> <2601191342CEEE43887BDE71AB977258213A27BD@IRSMSX105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4 0/3] Fix packet length issue 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: Wed, 05 Nov 2014 21:58:21 -0000 > > This patch set fix packet length issue in vhost app, and enhance code by > > extracting a function to replace duplicated codes in one copy and zero copy > > TX function. > > > > -v4 chang: > > Check offset value and extra bytes inside packet buffer cross page boundary. > > > > -v3 change: > > Extract a function to replace duplicated codes in one copy and zero copy TX function. > > > > -v2 change: > > Update data length by plus offset in first segment instead of last segment. > > > > -v1 change: > > Update the packet length by plus offset; > > Use macro to replace constant. > > > > Changchun Ouyang (3): > > Fix packet length issue in vhost. > > Extract a function to replace duplicated codes in vhost. > > Check offset value in vhost > > > > examples/vhost/main.c | 142 +++++++++++++++++++++++--------------------------- > > 1 file changed, 65 insertions(+), 77 deletions(-) > > > > -- > > 1.8.4.2 > > Acked-by: Konstantin Ananyev Applied Thanks -- Thomas