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 24D0DA04B5; Mon, 7 Sep 2020 13:29:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 14EAA1C1F7; Mon, 7 Sep 2020 13:25:14 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C8D0D1C215 for ; Mon, 7 Sep 2020 13:25:11 +0200 (CEST) IronPort-SDR: uJruT9jw+gacTdi8JIG5CP7jKt+iOc4XlkLuVVFewzRFVEGilkXZwuRzzEM0SNfvyJ/VtWOdjO PVS0bO8OfiJA== X-IronPort-AV: E=McAfee;i="6000,8403,9736"; a="157252695" X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="157252695" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2020 04:25:11 -0700 IronPort-SDR: WcbPBr+6sH1o65Ofn4Z5esogv39+1wQX5b/9anBzitj5r9UOtekwF/5HZ6YD/WwVvun+Czeg4M KEY4/dyW0UHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="328058900" Received: from dpdk51.sh.intel.com ([10.67.111.82]) by fmsmga004.fm.intel.com with ESMTP; 07 Sep 2020 04:25:10 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang Date: Mon, 7 Sep 2020 19:28:14 +0800 Message-Id: <20200907112826.48493-29-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20200907112826.48493-1-qi.z.zhang@intel.com> References: <20200907112826.48493-1-qi.z.zhang@intel.com> Subject: [dpdk-dev] [PATCH 28/40] net/ice/base: remove function ACL count query 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" Remove debug function ice_aq_query_acl_cntrs. Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_acl.c | 36 ------------------------------------ drivers/net/ice/base/ice_acl.h | 3 --- 2 files changed, 39 deletions(-) diff --git a/drivers/net/ice/base/ice_acl.c b/drivers/net/ice/base/ice_acl.c index fd12507d7..435a0cb51 100644 --- a/drivers/net/ice/base/ice_acl.c +++ b/drivers/net/ice/base/ice_acl.c @@ -435,42 +435,6 @@ ice_aq_dealloc_acl_cntrs(struct ice_hw *hw, struct ice_acl_cntrs *cntrs, } /** - * ice_aq_query_acl_cntrs - query ACL counter - * @hw: pointer to the HW struct - * @bank: queries counter bank - * @index: queried counter index - * @cntr_val: pointer to counter or packet counter value - * @cd: pointer to command details structure or NULL - * - * Query ACL counter (direct 0x0C27) - */ -enum ice_status -ice_aq_query_acl_cntrs(struct ice_hw *hw, u8 bank, u16 index, u64 *cntr_val, - struct ice_sq_cd *cd) -{ - struct ice_aqc_acl_query_counter *cmd; - struct ice_aq_desc desc; - enum ice_status status; - - if (!cntr_val) - return ICE_ERR_PARAM; - - ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_query_acl_counter); - cmd = &desc.params.query_counter; - cmd->counter_index = CPU_TO_LE16(index); - cmd->counter_bank = bank; - status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd); - if (!status) { - __le64 resp_val = 0; - - ice_memcpy(&resp_val, cmd->ops.resp.val, - sizeof(cmd->ops.resp.val), ICE_NONDMA_TO_NONDMA); - *cntr_val = LE64_TO_CPU(resp_val); - } - return status; -} - -/** * ice_prog_acl_prof_ranges - program ACL profile ranges * @hw: pointer to the HW struct * @prof_id: programmed or updated profile ID diff --git a/drivers/net/ice/base/ice_acl.h b/drivers/net/ice/base/ice_acl.h index cd75e1c17..be27a545b 100644 --- a/drivers/net/ice/base/ice_acl.h +++ b/drivers/net/ice/base/ice_acl.h @@ -172,9 +172,6 @@ enum ice_status ice_aq_dealloc_acl_cntrs(struct ice_hw *hw, struct ice_acl_cntrs *cntrs, struct ice_sq_cd *cd); enum ice_status -ice_aq_query_acl_cntrs(struct ice_hw *hw, u8 bank, u16 index, u64 *cntr_val, - struct ice_sq_cd *cd); -enum ice_status ice_prog_acl_prof_ranges(struct ice_hw *hw, u8 prof_id, struct ice_aqc_acl_profile_ranges *buf, struct ice_sq_cd *cd); -- 2.13.6