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 606D3A0508; Thu, 7 Apr 2022 05:00:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C260F428A7; Thu, 7 Apr 2022 04:59:31 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 7EA85428B4 for ; Thu, 7 Apr 2022 04:59:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649300370; x=1680836370; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nfRD6Zu1g0yJzK3dWOMEHm6IwTux3SufOXnJOOlqa3I=; b=ZlNXBOvD37f+ZVr5gu6GD3wfv+O3KOGa0RxVt+9GV9vVMLzU5JInoxGl t2MARIvGYGGgyCgGS5e9BTJNPyvrgeClraL2qxAdtEnX9+WXbm0KUlGLJ avZ1aj7P85aJyYZTXD9CeSCQhkQ+N181MzB8jOiz5kAwBf5AZ+wFGJA9q QBtVgR491+mX2dxFXF9GZbMtxPsXLcc8R5WqH/tesGeQN/gC36VJvjYic 5KldOGLkuJJe/UsQwG1NzseS6oJ9S7ti9s8s406ruKjX2PE4XzgPQhHWQ G419hAEPdVLjqK6wsC7j34VL6/1zYV4toxX80UXhngQTHx33zR8WNdOom Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="248738441" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="248738441" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:59:30 -0700 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="570850740" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:59:27 -0700 From: Kevin Liu To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com, Alvin Zhang , Steven Zou , Kevin Liu Subject: [PATCH 26/39] net/ice/base: support custom ddp package version Date: Thu, 7 Apr 2022 10:56:53 +0000 Message-Id: <20220407105706.18889-27-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220407105706.18889-1-kevinx.liu@intel.com> References: <20220407105706.18889-1-kevinx.liu@intel.com> 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 From: Alvin Zhang Add checking if the current ddp package is a custom package. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_flex_pipe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/base/ice_flex_pipe.c b/drivers/net/ice/base/ice_flex_pipe.c index 8672c41c69..1827993f44 100644 --- a/drivers/net/ice/base/ice_flex_pipe.c +++ b/drivers/net/ice/base/ice_flex_pipe.c @@ -1467,6 +1467,10 @@ static void ice_init_pkg_regs(struct ice_hw *hw) */ static enum ice_status ice_chk_pkg_version(struct ice_pkg_ver *pkg_ver) { + /* 0xFF indicate a custom pkg */ + if (pkg_ver->major == 0xFF) + return ICE_SUCCESS; + if (pkg_ver->major != ICE_PKG_SUPP_VER_MAJ || pkg_ver->minor != ICE_PKG_SUPP_VER_MNR) return ICE_ERR_NOT_SUPPORTED; -- 2.33.1