| 262 | } |
| 263 | |
| 264 | static 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 | |
| 292 | static int enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) |
| 293 | { |
nothing calls this directly
no test coverage detected