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 83911A0524; Mon, 27 Jul 2020 05:43:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 548771C0AC; Mon, 27 Jul 2020 05:43:25 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 3B7671C023 for ; Mon, 27 Jul 2020 05:43:24 +0200 (CEST) IronPort-SDR: JlpUE4RvCEWYspt3eJpoTmIOVOH5Sv47/r+HWhc1fMPu7hFPEsg9QwukDReWEvFIC2HZGcPEdd pDblQBTEappQ== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="130498442" X-IronPort-AV: E=Sophos;i="5.75,401,1589266800"; d="scan'208";a="130498442" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2020 20:43:23 -0700 IronPort-SDR: Wd6owQUVfx992+zJsGR5ZMiWrVMQ19Nn0613E7+j9refCf3JLMCg4ZY1OHYajDse6jcJB+6Un8 ipl/ciZYpR4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,401,1589266800"; d="scan'208";a="327888180" Received: from jguo15x-mobl.ccr.corp.intel.com (HELO [10.67.68.176]) ([10.67.68.176]) by FMSMGA003.fm.intel.com with ESMTP; 26 Jul 2020 20:43:21 -0700 To: Guinan Sun , dev@dpdk.org Cc: Beilei Xing , Przemyslaw Patynowski References: <20200721074000.30449-1-guinanx.sun@intel.com> <20200721074000.30449-3-guinanx.sun@intel.com> From: Jeff Guo Message-ID: <30f7aca3-021c-5052-2bc8-47ad89e51fc6@intel.com> Date: Mon, 27 Jul 2020 11:43:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200721074000.30449-3-guinanx.sun@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 2/8] net/i40e/base: add PTYPE definition 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" Acked-by: Jeff Guo On 7/21/2020 3:39 PM, Guinan Sun wrote: > Add I40E_RX_PTYPE_PARSER_ABORTED definition, so i40e driver will know > opcode for parser aborted packets. > Without this definition driver would have to rely on magic numbers. > > Signed-off-by: Przemyslaw Patynowski > Signed-off-by: Guinan Sun > --- > drivers/net/i40e/base/i40e_type.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h > index b5b5b928d..0eeb55975 100644 > --- a/drivers/net/i40e/base/i40e_type.h > +++ b/drivers/net/i40e/base/i40e_type.h > @@ -961,7 +961,8 @@ enum i40e_rx_l2_ptype { > I40E_RX_PTYPE_GRENAT4_MAC_PAY3 = 58, > I40E_RX_PTYPE_GRENAT4_MACVLAN_IPV6_ICMP_PAY4 = 87, > I40E_RX_PTYPE_GRENAT6_MAC_PAY3 = 124, > - I40E_RX_PTYPE_GRENAT6_MACVLAN_IPV6_ICMP_PAY4 = 153 > + I40E_RX_PTYPE_GRENAT6_MACVLAN_IPV6_ICMP_PAY4 = 153, > + I40E_RX_PTYPE_PARSER_ABORTED = 255 > }; > > struct i40e_rx_ptype_decoded {