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 D5E1CA0613 for ; Thu, 29 Aug 2019 10:06:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 20A7F1DFEF; Thu, 29 Aug 2019 10:06:31 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5751A1D163 for ; Thu, 29 Aug 2019 10:06:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 01:06:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,442,1559545200"; d="scan'208";a="180805306" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.187]) by fmsmga008.fm.intel.com with ESMTP; 29 Aug 2019 01:06:22 -0700 From: Leyi Rong To: qi.z.zhang@intel.com, xiaolong.ye@intel.com, haiyue.wang@intel.com, wenzhuo.lu@intel.com Cc: dev@dpdk.org Date: Thu, 29 Aug 2019 16:04:39 +0800 Message-Id: <20190829080441.12602-5-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190829080441.12602-1-leyi.rong@intel.com> References: <20190829023421.112551-2-leyi.rong@intel.com> <20190829080441.12602-1-leyi.rong@intel.com> Subject: [dpdk-dev] [PATCH v2 4/6] net/ice: support more ptype 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" From: Wenzhuo Lu More protocol types are supported by HW. Add them. Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index ade755c2f..75def755a 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -3093,6 +3093,17 @@ ice_get_default_pkt_type(uint16_t ptype) RTE_PTYPE_TUNNEL_GTPU, [267] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_TUNNEL_GTPU, + /* [268] - [271] reserved */ + /* Some protocols are not supported by API, Like, VRRP, OSPF. + * Just report them as L2 or L3 packets. + */ + [272] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN, + [273] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN, + [274] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN, + [275] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN, + [276] = RTE_PTYPE_L2_ETHER, + /* [277] reserved */ + [278] = RTE_PTYPE_L2_ETHER, /* All others reserved */ }; -- 2.17.1