Searched refs:nb_new_buf (Results 1 – 1 of 1) sorted by relevance
3239 hns3_tx_alloc_mbufs(struct rte_mempool *mb_pool, uint16_t nb_new_buf, in hns3_tx_alloc_mbufs() argument3247 if (rte_mempool_get_bulk(mb_pool, (void **)pkt_segs, nb_new_buf)) in hns3_tx_alloc_mbufs()3250 for (i = 0; i < nb_new_buf - 1; i++) in hns3_tx_alloc_mbufs()3253 pkt_segs[nb_new_buf - 1]->next = NULL; in hns3_tx_alloc_mbufs()3254 pkt_segs[0]->nb_segs = nb_new_buf; in hns3_tx_alloc_mbufs()3283 uint16_t nb_new_buf; in hns3_reassemble_tx_pkts() local3295 nb_new_buf = (rte_pktmbuf_pkt_len(tx_pkt) - 1) / buf_size + 1; in hns3_reassemble_tx_pkts()3296 if (nb_new_buf > max_non_tso_bd_num) in hns3_reassemble_tx_pkts()3304 ret = hns3_tx_alloc_mbufs(mb_pool, nb_new_buf, &new_mbuf); in hns3_reassemble_tx_pkts()