From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 25763532E for ; Thu, 21 Jul 2016 12:51:31 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 21 Jul 2016 03:51:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,398,1464678000"; d="scan'208";a="1021212327" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga002.jf.intel.com with ESMTP; 21 Jul 2016 03:51:29 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.51]) by IRSMSX106.ger.corp.intel.com ([169.254.8.145]) with mapi id 14.03.0248.002; Thu, 21 Jul 2016 11:51:27 +0100 From: "Ananyev, Konstantin" To: Olivier Matz , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" CC: "Chandran, Sugesh" , "Richardson, Bruce" , "Tan, Jianfeng" , "adrien.mazarguil@6wind.com" Thread-Topic: [PATCH 04/12] mbuf: add function to calculate a checksum Thread-Index: AQHR4ycxS+7yyQn4+EKLGwJQZ2xgm6AitEzw Date: Thu, 21 Jul 2016 10:51:26 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725836B804B3@irsmsx105.ger.corp.intel.com> References: <1469088510-7552-1-git-send-email-olivier.matz@6wind.com> <1469088510-7552-5-git-send-email-olivier.matz@6wind.com> In-Reply-To: <1469088510-7552-5-git-send-email-olivier.matz@6wind.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 04/12] mbuf: add function to calculate a checksum 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, 21 Jul 2016 10:51:33 -0000 Hi Olivier, >=20 > This function can be used to calculate the checksum of data embedded in m= buf, that can be composed of several segments. >=20 > This function will be used by the virtio pmd in next commits to calculate= the checksum in software in case the protocol is not recognized. >=20 > Signed-off-by: Olivier Matz > --- > doc/guides/rel_notes/release_16_11.rst | 5 ++++ > lib/librte_mbuf/rte_mbuf.c | 55 ++++++++++++++++++++++++++++= ++++-- > lib/librte_mbuf/rte_mbuf.h | 13 ++++++++ > lib/librte_mbuf/rte_mbuf_version.map | 1 + > 4 files changed, 72 insertions(+), 2 deletions(-) >=20 > diff --git a/doc/guides/rel_notes/release_16_11.rst b/doc/guides/rel_note= s/release_16_11.rst > index 6a591e2..da70f3b 100644 > --- a/doc/guides/rel_notes/release_16_11.rst > +++ b/doc/guides/rel_notes/release_16_11.rst > @@ -53,6 +53,11 @@ New Features > Added two new functions ``rte_get_rx_ol_flag_list()`` and > ``rte_get_tx_ol_flag_list()`` to dump offload flags as a string. >=20 > +* **Added a functions to calculate the checksum of data in a mbuf.** > + > + Added a new function ``rte_pktmbuf_cksum()`` to process the checksum > + of data embedded in an mbuf chain. > + > Resolved Issues > --------------- >=20 > diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c inde= x 56f37e6..0304245 100644 > --- a/lib/librte_mbuf/rte_mbuf.c > +++ b/lib/librte_mbuf/rte_mbuf.c > @@ -60,6 +60,7 @@ > #include > #include > #include > +#include As a nit, do we need to introduce a dependency for librte_mbuf on librte_ne= t? Might be better to put this functionality into librte_net? Konstantin