From: Pablo de Lara Date: Tue, 22 May 2018 10:54:32 +0000 (+0100) Subject: compressdev: clarify mbuf offsets X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=408a24da538f14df270085c9ca8185c2e22ae5b7;p=dpdk.git compressdev: clarify mbuf offsets 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 Reviewed-by: Shally Verma --- diff --git a/lib/librte_compressdev/rte_comp.h b/lib/librte_compressdev/rte_comp.h index 9826086b1c..5b513c77ea 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;