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 DA5DAA0C47; Tue, 26 Oct 2021 10:49:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A7839426DC; Tue, 26 Oct 2021 10:49:48 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id F17DC426DC; Tue, 26 Oct 2021 10:49:46 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10148"; a="216767162" X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="216767162" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 01:49:46 -0700 X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="486078564" Received: from unknown (HELO localhost.localdomain) ([10.240.183.93]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 01:49:43 -0700 From: dapengx.yu@intel.com To: Qiming Yang , Qi Zhang Cc: dev@dpdk.org, Dapeng Yu , stable@dpdk.org Date: Tue, 26 Oct 2021 16:49:38 +0800 Message-Id: <20211026084938.1684619-1-dapengx.yu@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/ice: change RTE log level to DEBUG 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 Sender: "dev" From: Dapeng Yu When VF is reset in high frequency, the AdminQ command may fail, but the failure can be recovered actually. So the error messages for getting VF resource, getting VSI map, and re-directing flows should be suppressed, in order to avoid causing concern for DCF users. Fixes: 7564d5509611 ("net/ice: add DCF hardware initialization") Cc: stable@dpdk.org Signed-off-by: Dapeng Yu --- drivers/net/ice/ice_dcf.c | 8 ++++---- drivers/net/ice/ice_generic_flow.c | 2 +- drivers/net/ice/ice_switch_filter.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c index 084f7a53db..9a53ba3538 100644 --- a/drivers/net/ice/ice_dcf.c +++ b/drivers/net/ice/ice_dcf.c @@ -241,7 +241,7 @@ ice_dcf_get_vf_resource(struct ice_dcf_hw *hw) err = ice_dcf_send_cmd_req_no_irq(hw, VIRTCHNL_OP_GET_VF_RESOURCES, (uint8_t *)&caps, sizeof(caps)); if (err) { - PMD_DRV_LOG(ERR, "Failed to send msg OP_GET_VF_RESOURCE"); + PMD_DRV_LOG(DEBUG, "Failed to send msg OP_GET_VF_RESOURCE"); return err; } @@ -249,7 +249,7 @@ ice_dcf_get_vf_resource(struct ice_dcf_hw *hw) (uint8_t *)hw->vf_res, ICE_DCF_VF_RES_BUF_SZ, NULL); if (err) { - PMD_DRV_LOG(ERR, "Failed to get response of OP_GET_VF_RESOURCE"); + PMD_DRV_LOG(DEBUG, "Failed to get response of OP_GET_VF_RESOURCE"); return -1; } @@ -283,7 +283,7 @@ ice_dcf_get_vf_vsi_map(struct ice_dcf_hw *hw) err = ice_dcf_send_cmd_req_no_irq(hw, VIRTCHNL_OP_DCF_GET_VSI_MAP, NULL, 0); if (err) { - PMD_DRV_LOG(ERR, "Failed to send msg OP_DCF_GET_VSI_MAP"); + PMD_DRV_LOG(DEBUG, "Failed to send msg OP_DCF_GET_VSI_MAP"); return err; } @@ -291,7 +291,7 @@ ice_dcf_get_vf_vsi_map(struct ice_dcf_hw *hw) hw->arq_buf, ICE_DCF_AQ_BUF_SZ, &len); if (err) { - PMD_DRV_LOG(ERR, "Failed to get response of OP_DCF_GET_VSI_MAP"); + PMD_DRV_LOG(DEBUG, "Failed to get response of OP_DCF_GET_VSI_MAP"); return err; } diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c index 02f854666a..4aca24de89 100644 --- a/drivers/net/ice/ice_generic_flow.c +++ b/drivers/net/ice/ice_generic_flow.c @@ -2551,7 +2551,7 @@ ice_flow_redirect(struct ice_adapter *ad, continue; ret = p_flow->engine->redirect(ad, p_flow, rd); if (ret) { - PMD_DRV_LOG(ERR, "Failed to redirect flows"); + PMD_DRV_LOG(DEBUG, "Failed to redirect flows"); break; } } diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 6b0c1bff1e..b4f3bbafff 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -1943,7 +1943,7 @@ ice_switch_redirect(struct ice_adapter *ad, ret = ice_rem_adv_rule(hw, list_itr->lkups, lkups_cnt, &rinfo); if (ret) { - PMD_DRV_LOG(ERR, "Failed to delete the old rule %d", + PMD_DRV_LOG(DEBUG, "Failed to delete the old rule %d", rdata->rule_id); ret = -EINVAL; goto out; @@ -1956,7 +1956,7 @@ ice_switch_redirect(struct ice_adapter *ad, ret = ice_add_adv_rule(hw, lkups_dp, lkups_cnt, &rinfo, rdata); if (ret) { - PMD_DRV_LOG(ERR, "Failed to replay the rule"); + PMD_DRV_LOG(DEBUG, "Failed to replay the rule"); ret = -EINVAL; } -- 2.27.0