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

Function enicpmd_dev_rx_queue_setup

dpdk/drivers/net/enic/enic_ethdev.c:264–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264static int enicpmd_dev_rx_queue_setup(struct rte_eth_dev *eth_dev,
265 uint16_t queue_idx,
266 uint16_t nb_desc,
267 unsigned int socket_id,
268 const struct rte_eth_rxconf *rx_conf,
269 struct rte_mempool *mp)
270{
271 int ret;
272 struct enic *enic = pmd_priv(eth_dev);
273
274 ENICPMD_FUNC_TRACE();
275
276 if (rte_eal_process_type() != RTE_PROC_PRIMARY)
277 return -E_RTE_SECONDARY;
278 RTE_ASSERT(enic_rte_rq_idx_to_sop_idx(queue_idx) < enic->conf_rq_count);
279 eth_dev->data->rx_queues[queue_idx] =
280 (void *)&enic->rq[enic_rte_rq_idx_to_sop_idx(queue_idx)];
281
282 ret = enic_alloc_rq(enic, queue_idx, socket_id, mp, nb_desc,
283 rx_conf->rx_free_thresh);
284 if (ret) {
285 dev_err(enic, "error in allocating rq\n");
286 return ret;
287 }
288
289 return enicpmd_dev_setup_intr(enic);
290}
291
292static int enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
293{

Callers

nothing calls this directly

Calls 5

pmd_privFunction · 0.85
rte_eal_process_typeFunction · 0.85
enic_alloc_rqFunction · 0.85
enicpmd_dev_setup_intrFunction · 0.85

Tested by

no test coverage detected