Home
last modified time | relevance | path

Searched refs:ctr_id (Results 1 – 4 of 4) sorted by relevance

/f-stack/dpdk/drivers/net/octeontx2/
H A Dotx2_flow.h155 int32_t ctr_id; member
344 int otx2_flow_mcam_free_counter(struct otx2_mbox *mbox, uint16_t ctr_id);
346 int otx2_flow_mcam_read_counter(struct otx2_mbox *mbox, uint32_t ctr_id,
349 int otx2_flow_mcam_clear_counter(struct otx2_mbox *mbox, uint32_t ctr_id);
H A Dotx2_flow_utils.c25 otx2_flow_mcam_free_counter(struct otx2_mbox *mbox, uint16_t ctr_id) in otx2_flow_mcam_free_counter() argument
31 req->cntr = ctr_id; in otx2_flow_mcam_free_counter()
39 otx2_flow_mcam_read_counter(struct otx2_mbox *mbox, uint32_t ctr_id, in otx2_flow_mcam_read_counter() argument
47 req->cntr = ctr_id; in otx2_flow_mcam_read_counter()
56 otx2_flow_mcam_clear_counter(struct otx2_mbox *mbox, uint32_t ctr_id) in otx2_flow_mcam_clear_counter() argument
62 req->cntr = ctr_id; in otx2_flow_mcam_clear_counter()
890 int use_ctr = (flow->ctr_id == NPC_COUNTER_NONE ? 0 : 1); in otx2_flow_mcam_alloc_and_write()
961 flow->ctr_id = ctr; in otx2_flow_mcam_alloc_and_write()
H A Dotx2_flow.c36 if (flow->ctr_id != NPC_COUNTER_NONE) in otx2_flow_free_all_resources()
38 flow->ctr_id); in otx2_flow_free_all_resources()
776 if (flow->ctr_id == NPC_COUNTER_NONE) { in otx2_flow_query()
781 rc = otx2_flow_mcam_read_counter(mbox, flow->ctr_id, &query->hits); in otx2_flow_query()
791 rc = otx2_flow_mcam_clear_counter(mbox, flow->ctr_id); in otx2_flow_query()
H A Dotx2_flow_parse.c825 flow->ctr_id = NPC_COUNTER_NONE; in otx2_flow_parse_actions()
866 flow->ctr_id = 1; in otx2_flow_parse_actions()