From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 204E51DA4 for ; Tue, 22 May 2018 12:54:15 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 03:54:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,429,1520924400"; d="scan'208";a="52853003" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by orsmga003.jf.intel.com with ESMTP; 22 May 2018 03:54:13 -0700 From: Pablo de Lara To: fiona.trahe@intel.com, ashish.gupta@caviumnetworks.com, shally.verma@cavium.com Cc: dev@dpdk.org, Pablo de Lara Date: Tue, 22 May 2018 11:54:32 +0100 Message-Id: <20180522105432.36821-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH] compressdev: clarify mbuf offsets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 10:54:16 -0000 Add extra clarification about offset in source and destination mbuf used in compressdev, when they are a chain of mbufs. Signed-off-by: Pablo de Lara --- lib/librte_compressdev/rte_comp.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_compressdev/rte_comp.h b/lib/librte_compressdev/rte_comp.h index 9826086b1..5b513c77e 100644 --- a/lib/librte_compressdev/rte_comp.h +++ b/lib/librte_compressdev/rte_comp.h @@ -315,6 +315,8 @@ struct rte_comp_op { /**< Starting point for compression or decompression, * specified as number of bytes from start of packet in * source buffer. + * This offset starts from the first segment + * of the buffer, in case the m_src is a chain of mbufs. * Starting point for checksum generation in compress direction. */ uint32_t length; @@ -328,7 +330,10 @@ struct rte_comp_op { uint32_t offset; /**< Starting point for writing output data, specified as * number of bytes from start of packet in dest - * buffer. Starting point for checksum generation in + * buffer. + * This offset starts from the first segment + * of the buffer, in case the m_dst is a chain of mbufs. + * Starting point for checksum generation in * decompress direction. */ } dst; -- 2.17.0