| 1672 | } |
| 1673 | |
| 1674 | static int ena_add_single_rx_desc(struct ena_com_io_sq *io_sq, |
| 1675 | struct rte_mbuf *mbuf, uint16_t id) |
| 1676 | { |
| 1677 | struct ena_com_buf ebuf; |
| 1678 | int rc; |
| 1679 | |
| 1680 | /* prepare physical address for DMA transaction */ |
| 1681 | ebuf.paddr = mbuf->buf_iova + RTE_PKTMBUF_HEADROOM; |
| 1682 | ebuf.len = mbuf->buf_len - RTE_PKTMBUF_HEADROOM; |
| 1683 | |
| 1684 | /* pass resource to device */ |
| 1685 | rc = ena_com_add_single_rx_desc(io_sq, &ebuf, id); |
| 1686 | if (unlikely(rc != 0)) |
| 1687 | PMD_RX_LOG(WARNING, "Failed adding Rx desc\n"); |
| 1688 | |
| 1689 | return rc; |
| 1690 | } |
| 1691 | |
| 1692 | static int ena_populate_rx_queue(struct ena_ring *rxq, unsigned int count) |
| 1693 | { |
no test coverage detected