From patchwork Fri Sep 11 13:19:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zhang X-Patchwork-Id: 77415 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0DADBA04B7; Fri, 11 Sep 2020 15:21:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0260D1C21E; Fri, 11 Sep 2020 15:16:56 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D02101C1DD for ; Fri, 11 Sep 2020 15:16:41 +0200 (CEST) IronPort-SDR: KbkzNeOWwcYevcm61xdRSbIQB9e0R2EHF63uy+5apOEih0aoG/O6PJYA7mG/jeb/oFYgyteR3b zXqRrezJ9NEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="146482354" X-IronPort-AV: E=Sophos;i="5.76,415,1592895600"; d="scan'208";a="146482354" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2020 06:16:41 -0700 IronPort-SDR: ktq6TNTfXfF0dCQ+uPwWS3RcxglAxgJkVZ5TMIBhQU0jZmusMiC251B7YFLfiqSkFjJldqqMI7 Msunck4RefOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,415,1592895600"; d="scan'208";a="342296695" Received: from dpdk51.sh.intel.com ([10.67.111.82]) by FMSMGA003.fm.intel.com with ESMTP; 11 Sep 2020 06:16:40 -0700 From: Qi Zhang To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Qi Zhang Date: Fri, 11 Sep 2020 21:19:42 +0800 Message-Id: <20200911131954.15999-29-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20200911131954.15999-1-qi.z.zhang@intel.com> References: <20200907112826.48493-1-qi.z.zhang@intel.com> <20200911131954.15999-1-qi.z.zhang@intel.com> Subject: [dpdk-dev] [PATCH v2 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 Acked-by: Qiming Yang --- 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);