MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_qid_iq_stat

Function get_qid_iq_stat

dpdk/drivers/event/sw/sw_evdev_xstats.c:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127static uint64_t
128get_qid_iq_stat(const struct sw_evdev *sw, uint16_t obj_idx,
129 enum xstats_type type, int extra_arg)
130{
131 const struct sw_qid *qid = &sw->qids[obj_idx];
132 const int iq_idx = extra_arg;
133
134 switch (type) {
135 case iq_used: return iq_count(&qid->iq[iq_idx]);
136 default: return -1;
137 }
138}
139
140static uint64_t
141get_qid_port_stat(const struct sw_evdev *sw, uint16_t obj_idx,

Callers

nothing calls this directly

Calls 1

iq_countFunction · 0.85

Tested by

no test coverage detected