From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E76DC2E89 for ; Wed, 5 Nov 2014 08:01:24 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 04 Nov 2014 23:09:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,317,1413270000"; d="scan'208";a="631711290" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 04 Nov 2014 23:10:40 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id sA57AbKi031524; Wed, 5 Nov 2014 15:10:37 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id sA57AZO6024285; Wed, 5 Nov 2014 15:10:37 +0800 Received: (from couyang@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sA57AZ7v024281; Wed, 5 Nov 2014 15:10:35 +0800 From: Ouyang Changchun To: dev@dpdk.org Date: Wed, 5 Nov 2014 15:10:32 +0800 Message-Id: <1415171435-24252-1-git-send-email-changchun.ouyang@intel.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1415084708-8192-1-git-send-email-changchun.ouyang@intel.com> References: <1415084708-8192-1-git-send-email-changchun.ouyang@intel.com> Subject: [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 07:01:26 -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