X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_ulp%2Fulp_fc_mgr.h;h=20726704941dbc27f3f4943b7531d5c098a0b44e;hp=faa77dd7502dbb73aeb6ad6c5ed0d5431a1330f1;hb=306c2d28e247a2dcc8af696f8a2f008d10f774c0;hpb=9cf9c8385df7ada0ea77950b9a629d1d017b6512 diff --git a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h index faa77dd750..2072670494 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h +++ b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h @@ -23,6 +23,7 @@ struct sw_acc_counter { uint64_t pkt_count; uint64_t byte_count; bool valid; + uint32_t hw_cntr_id; }; struct hw_fc_mem_info { @@ -142,7 +143,21 @@ bool ulp_fc_mgr_start_idx_isset(struct bnxt_ulp_context *ctxt, enum tf_dir dir); * ctxt [in] The ulp context for the flow counter manager * */ - bool ulp_fc_mgr_thread_isstarted(struct bnxt_ulp_context *ctxt); +/* + * Fill the rte_flow_query_count 'data' argument passed + * in the rte_flow_query() with the values obtained and + * accumulated locally. + * + * ctxt [in] The ulp context for the flow counter manager + * + * flow_id [in] The HW flow ID + * + * count [out] The rte_flow_query_count 'data' that is set + * + */ +int ulp_fc_mgr_query_count_get(struct bnxt_ulp_context *ulp_ctx, + uint32_t flow_id, + struct rte_flow_query_count *count); #endif /* _ULP_FC_MGR_H_ */