for (int i = 0; i < mbufs_per_queue_rx; i++) {
rte_mbuf* m = rte_pktmbuf_alloc(_pktmbuf_pool_rx);
assert(m);
- rte_mbuf_refcnt_update(m, -1);
+ rte_mbuf_refcnt_set(m, 1);
_rx_free_bufs.push_back(m);
}
}
}
- ldout(cct, 20) << __func__ << " count " << rte_mempool_count(_pktmbuf_pool_rx) << " free count " << rte_mempool_free_count(_pktmbuf_pool_rx) << dendl;
return _pktmbuf_pool_rx != nullptr;
}
ldout(cct, 10) << __func__ << " free segs " << _num_rx_free_segs
<< " thresh " << rx_gc_thresh
<< " free pkts " << _rx_free_pkts.size()
- << " pool count " << rte_mempool_count(_pktmbuf_pool_rx)
- << " free pool count " << rte_mempool_free_count(_pktmbuf_pool_rx)
<< dendl;
while (!_rx_free_pkts.empty()) {
}
bool done = false;
- const char *hexstring = c->_conf->get_val<std::string>("ms_dpdk_coremaskbit").c_str();
+ const char *hexstring = c->_conf->get_val<std::string>("ms_dpdk_coremask").c_str();
int num = (int)strtol(hexstring, NULL, 0);
unsigned int coremaskbit = bitcount(num);