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 8D884A0503; Tue, 29 Mar 2022 04:11:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67A9E428C3; Tue, 29 Mar 2022 04:11:06 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 3C2F3428C3 for ; Tue, 29 Mar 2022 04:11:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648519865; x=1680055865; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OC10GYOSWRQz+nywzFazamZNCf/v1s2I4eWSccfQymg=; b=EBPioKZ9O95IcRsJl45ndatjAJ1uRABMTzsl/Jk3ZkpLvh8urezIkKZK Tp2frpTh0M5lXLVLrUDy5rieQcQUcZuruwZffSvhQOz1Jcgh6YUpr6zOZ oFHPOufnOAdBH/8WdxjP9KWXyajARX153cyygN4+EBWPCdXWFzrnjLp6V 8+SA7wnfiyQQbM0CGoJ6mAFMFjQS9zC5ptsc/rvZ1Zb1q7FVuM5fy8/c5 vIdyLV8wa2vfvVtmrRe3Odvug6yJ4UJPcRelAgaWIcQk8pS9N75GB/t8s TRtqzDgb5xw/EkK01VFAh3boviCWjt0sI8V0ukYPitX8CcI9V2FYmis7H w==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="258857679" X-IronPort-AV: E=Sophos;i="5.90,219,1643702400"; d="scan'208";a="258857679" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 19:11:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,219,1643702400"; d="scan'208";a="585404177" Received: from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181]) by orsmga001.jf.intel.com with ESMTP; 28 Mar 2022 19:11:03 -0700 From: Wenjun Wu To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Cc: Wenjun Wu Subject: [PATCH v1 9/9] net/ice: add warning log for unsupported configuration Date: Tue, 29 Mar 2022 09:48:13 +0800 Message-Id: <20220329014813.1092054-10-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220329014813.1092054-1-wenjun1.wu@intel.com> References: <20220329014813.1092054-1-wenjun1.wu@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 Priority configuration is enabled in level 3 and level 4. Weight configuration is enabled in level 4. This patch adds warning log for unsupported priority and weight configuration. Signed-off-by: Wenjun Wu --- drivers/net/ice/ice_tm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c index fdbb415eda..d214b6bc91 100644 --- a/drivers/net/ice/ice_tm.c +++ b/drivers/net/ice/ice_tm.c @@ -515,6 +515,15 @@ ice_tm_node_add(struct rte_eth_dev *dev, uint32_t node_id, } } + if (tm_node->priority != 0 && (level_id != ICE_TM_NODE_TYPE_QUEUE || + level_id != ICE_TM_NODE_TYPE_QGROUP)) + PMD_DRV_LOG(WARNING, "priority != 0 not supported in level %d", + level_id); + + if (tm_node->weight != 1 && level_id != ICE_TM_NODE_TYPE_QUEUE) + PMD_DRV_LOG(WARNING, "weight != 1 not supported in level %d", + level_id); + /* add the TC or VSI or queue group or queue node */ tm_node = rte_zmalloc("ice_tm_node", sizeof(struct ice_tm_node), -- 2.25.1