From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1C14042CC5; Thu, 15 Jun 2023 12:13:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5F3640DDA; Thu, 15 Jun 2023 12:13:02 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id D463C40A84; Thu, 15 Jun 2023 12:13:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686823982; x=1718359982; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TsvkTkSGQ3rbb7Sz/y1gicASTFb83JXiXEObMH+POZE=; b=T9He3QO03yTsd8UzXSIsdbu34KaNcM4woLpGrs6qIQiVZrtf5Bv1LLH9 2agjVX9hLZkoAGXnt+n9zErKML76UZzjoLO9BNlKUT1LAt/eNaUZDM9UR 42iOhhMCLATbjAyKrPVSmXXoMJGNA5/AvpSEzSuqNu2df9Ykk6sLpcYDt O/YvM4xGVChpZruTFYWeyyD9x0hEqEdPmezBX7hNgd67XMPzs1IIZZXDW XdjaU1YAD90mZorKh6E5+650HUywczyjoq0UQJLvW5lFst91PfSQ8J+ky zaURjOy5XbogmuKegNR3Eg5ZDKHxYOlRNR/e4l3XyKmPEeLn1ZYJUuvVa A==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="338496732" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="338496732" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 03:13:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="712406674" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="712406674" Received: from unknown (HELO localhost.localdomain) ([10.239.252.253]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 03:12:58 -0700 From: Mingjin Ye To: dev@dpdk.org Cc: qiming.yang@intel.com, stable@dpdk.org, yidingx.zhou@intel.com, Mingjin Ye , Qi Zhang Subject: [PATCH] net/ice/base: fix internal etype in switch filter Date: Thu, 15 Jun 2023 10:04:45 +0000 Message-Id: <20230615100445.503786-1-mingjinx.ye@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The definition of internal etype was missing in the preferred grouping table and protocol structure mapping table of a recipe. This was causing some functions to be abnormal. This patch adds the missing internal etype definition to the relevant tables to fix the issue. Fixes: ee3e244afb06 ("net/ice/base: support ethertype switch filters") Cc: stable@dpdk.org Signed-off-by: Mingjin Ye --- drivers/net/ice/base/ice_switch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 1f391002b8..f7fcc3a8d4 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -6985,6 +6985,7 @@ static const struct ice_prot_ext_tbl_entry ice_prot_ext[ICE_PROTOCOL_LAST] = { { ICE_MAC_OFOS, { 0, 2, 4, 6, 8, 10, 12 } }, { ICE_MAC_IL, { 0, 2, 4, 6, 8, 10, 12 } }, { ICE_ETYPE_OL, { 0 } }, + { ICE_ETYPE_IL, { 0 } }, { ICE_VLAN_OFOS, { 2, 0 } }, { ICE_IPV4_OFOS, { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 } }, { ICE_IPV4_IL, { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 } }, @@ -7022,6 +7023,7 @@ static struct ice_protocol_entry ice_prot_id_tbl[ICE_PROTOCOL_LAST] = { { ICE_MAC_OFOS, ICE_MAC_OFOS_HW }, { ICE_MAC_IL, ICE_MAC_IL_HW }, { ICE_ETYPE_OL, ICE_ETYPE_OL_HW }, + { ICE_ETYPE_IL, ICE_ETYPE_IL_HW }, { ICE_VLAN_OFOS, ICE_VLAN_OL_HW }, { ICE_IPV4_OFOS, ICE_IPV4_OFOS_HW }, { ICE_IPV4_IL, ICE_IPV4_IL_HW }, -- 2.25.1