X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_ulp%2Fulp_fc_mgr.h;h=9825ed2a2765f68f744d23668c4b0a01d0883e4c;hb=bf59878630a4fc5e74e2a9f7f12eee1a3b994fdc;hp=de4d3dfe95e3c7582ac2939f27d96934821d148e;hpb=640bfd23ce01523f5b8113c324c32c331efd6b9c;p=dpdk.git diff --git a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h index de4d3dfe95..9825ed2a27 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h +++ b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2014-2019 Broadcom + * Copyright(c) 2014-2021 Broadcom * All rights reserved. */ @@ -21,12 +21,14 @@ #define FLOW_CNTR_BYTES(v, d) (((v) & (d)->byte_count_mask) >> \ (d)->byte_count_shift) +#define FLOW_CNTR_PC_FLOW_VALID 0x1000000 + struct sw_acc_counter { uint64_t pkt_count; uint64_t byte_count; bool valid; uint32_t hw_cntr_id; - uint32_t parent_flow_id; + uint32_t pc_flow_idx; }; struct hw_fc_mem_info { @@ -48,6 +50,7 @@ struct bnxt_ulp_fc_info { uint32_t flags; uint32_t num_entries; pthread_mutex_t fc_lock; + uint32_t num_counters; }; int32_t @@ -174,12 +177,12 @@ int ulp_fc_mgr_query_count_get(struct bnxt_ulp_context *ulp_ctx, * * hw_cntr_id [in] The HW flow counter ID * - * fid [in] parent flow id + * pc_idx [in] parent child db index * */ int32_t ulp_fc_mgr_cntr_parent_flow_set(struct bnxt_ulp_context *ctxt, enum tf_dir dir, uint32_t hw_cntr_id, - uint32_t fid); + uint32_t pc_idx); #endif /* _ULP_FC_MGR_H_ */