From 0fceb10f6df2713953505a86f55dd0b76f484277 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Wed, 26 Aug 2020 20:59:16 +0800 Subject: [PATCH] net/ice/base: remove function ACL count query 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 fd12507d79..435a0cb518 100644 --- a/drivers/net/ice/base/ice_acl.c +++ b/drivers/net/ice/base/ice_acl.c @@ -434,42 +434,6 @@ ice_aq_dealloc_acl_cntrs(struct ice_hw *hw, struct ice_acl_cntrs *cntrs, return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); } -/** - * 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 diff --git a/drivers/net/ice/base/ice_acl.h b/drivers/net/ice/base/ice_acl.h index cd75e1c175..be27a545bf 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.20.1