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

Function bnxt_agg_bufs_valid

dpdk/drivers/net/bnxt/bnxt_rxr.c:291–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static int bnxt_agg_bufs_valid(struct bnxt_cp_ring_info *cpr,
292 uint8_t agg_bufs, uint32_t raw_cp_cons)
293{
294 uint16_t last_cp_cons;
295 struct rx_pkt_cmpl *agg_cmpl;
296
297 raw_cp_cons = ADV_RAW_CMP(raw_cp_cons, agg_bufs);
298 last_cp_cons = RING_CMP(cpr->cp_ring_struct, raw_cp_cons);
299 agg_cmpl = (struct rx_pkt_cmpl *)&cpr->cp_desc_ring[last_cp_cons];
300 return bnxt_cpr_cmp_valid(agg_cmpl, raw_cp_cons,
301 cpr->cp_ring_struct->ring_size);
302}
303
304/* TPA consume agg buffer out of order, allocate connected data only */
305static int bnxt_prod_ag_mbuf(struct bnxt_rx_queue *rxq)

Callers 3

bnxt_discard_rxFunction · 0.85
bnxt_tpa_endFunction · 0.85
bnxt_rx_pktFunction · 0.85

Calls 1

bnxt_cpr_cmp_validFunction · 0.85

Tested by

no test coverage detected