X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fice%2Fbase%2Fice_acl.c;h=763cd2af9efdada64569a9089d24b5f1467caee5;hb=cb71192486c34eada5b65c6c46d32afd05cc091b;hp=fd12507d79a7ad3ffd3614639996bb3f55773b72;hpb=06dd554ac7c7e757acf0eeb5e8071b496e0dd7e2;p=dpdk.git diff --git a/drivers/net/ice/base/ice_acl.c b/drivers/net/ice/base/ice_acl.c index fd12507d79..763cd2af9e 100644 --- a/drivers/net/ice/base/ice_acl.c +++ b/drivers/net/ice/base/ice_acl.c @@ -288,7 +288,7 @@ ice_acl_prof_aq_send(struct ice_hw *hw, u16 opc, u8 prof_id, } /** - * ice_prgm_acl_prof_extrt - program ACL profile extraction sequence + * ice_prgm_acl_prof_xtrct - program ACL profile extraction sequence * @hw: pointer to the HW struct * @prof_id: profile ID * @buf: ptr to buffer @@ -297,7 +297,7 @@ ice_acl_prof_aq_send(struct ice_hw *hw, u16 opc, u8 prof_id, * Program ACL profile extraction (indirect 0x0C1D) */ enum ice_status -ice_prgm_acl_prof_extrt(struct ice_hw *hw, u8 prof_id, +ice_prgm_acl_prof_xtrct(struct ice_hw *hw, u8 prof_id, struct ice_aqc_acl_prof_generic_frmt *buf, struct ice_sq_cd *cd) { @@ -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