From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FE96A04B7; Tue, 13 Oct 2020 19:41:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B42DB1DA84; Tue, 13 Oct 2020 19:41:06 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id DDCA01DA82 for ; Tue, 13 Oct 2020 19:41:04 +0200 (CEST) IronPort-SDR: Oma2qG8WwEOMxNx8RFSP4OSMIeM86CZcKqpv8v9XGf0timTMwDQrpkXA0SWhmNDbHzGFxDiOsF 7ZBa2av7BF0Q== X-IronPort-AV: E=McAfee;i="6000,8403,9773"; a="230134322" X-IronPort-AV: E=Sophos;i="5.77,371,1596524400"; d="scan'208";a="230134322" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2020 10:41:01 -0700 IronPort-SDR: T96AIEMiGVyJk2tJI6mXKzzFyUszZfcNqniSZ+ZczHE0DixTy3mlXC8pmDEd3MOPjL83obG7MC G5K8yxcRgZrA== X-IronPort-AV: E=Sophos;i="5.77,371,1596524400"; d="scan'208";a="530495640" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.214.64]) ([10.213.214.64]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2020 10:40:57 -0700 To: Michael Pfeiffer , Olivier Matz , Wenzhuo Lu , Beilei Xing , Bernard Iremonger , Ziyang Xuan , Xiaoyun Wang , Guoyang Zhou , Keith Wiles , Yong Wang , Maxime Coquelin , Chenbo Xia , Zhihong Wang Cc: dev@dpdk.org, Thomas Monjalon References: <20201012145546.329150-1-michael.pfeiffer@tu-ilmenau.de> From: Ferruh Yigit Message-ID: Date: Tue, 13 Oct 2020 18:40:54 +0100 MIME-Version: 1.0 In-Reply-To: <20201012145546.329150-1-michael.pfeiffer@tu-ilmenau.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] net: add rte_ipv4_hdr_len() 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/12/2020 3:55 PM, Michael Pfeiffer wrote: > Add a function to calculate the length of an IPv4 header as suggested > on the mailing list [1]. Call where appropriate. > > [1] https://mails.dpdk.org/archives/dev/2020-October/184471.html > > Suggested-by: Thomas Monjalon > Signed-off-by: Michael Pfeiffer Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks. Updated patch title to "net: add function to calculate IPv4 header length" Since you are already on it, a similar function to get the version also can be useful, if you have time for it.