From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v10 02/19] mbuf: add definitions of unified packet types Date: Wed, 15 Jul 2015 12:19:12 +0200 Message-ID: <55A633A0.10203@6wind.com> References: <1435912347-19499-1-git-send-email-helin.zhang@intel.com> <1436459501-14173-1-git-send-email-helin.zhang@intel.com> <1436459501-14173-3-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Helin Zhang , dev@dpdk.org Return-path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 445025A43 for ; Wed, 15 Jul 2015 12:19:20 +0200 (CEST) Received: by widjy10 with SMTP id jy10so124325072wid.1 for ; Wed, 15 Jul 2015 03:19:20 -0700 (PDT) In-Reply-To: <1436459501-14173-3-git-send-email-helin.zhang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 07/09/2015 06:31 PM, Helin Zhang wrote: > As there are only 6 bit flags in ol_flags for indicating packet > types, which is not enough to describe all the possible packet > types hardware can recognize. For example, i40e hardware can > recognize more than 150 packet types. Unified packet type is > composed of L2 type, L3 type, L4 type, tunnel type, inner L2 type, > inner L3 type and inner L4 type fields, and can be stored in > 'struct rte_mbuf' of 32 bits field 'packet_type'. > To avoid breaking ABI compatibility, all the changes would be > enabled by RTE_NEXT_ABI, which is disabled by default. > > Signed-off-by: Helin Zhang Acked-by: Olivier Matz