| 730 | } |
| 731 | |
| 732 | static uint64_t |
| 733 | ionic_rx_seg_rearm_data(struct ionic_lif *lif) |
| 734 | { |
| 735 | struct rte_mbuf rxm; |
| 736 | |
| 737 | memset(&rxm, 0, sizeof(rxm)); |
| 738 | |
| 739 | rte_mbuf_refcnt_set(&rxm, 1); |
| 740 | rxm.data_off = 0; /* no headroom */ |
| 741 | rxm.nb_segs = 1; |
| 742 | rxm.port = lif->port_id; |
| 743 | |
| 744 | rte_compiler_barrier(); |
| 745 | |
| 746 | RTE_BUILD_BUG_ON(sizeof(rxm.rearm_data[0]) != sizeof(uint64_t)); |
| 747 | return rxm.rearm_data[0]; |
| 748 | } |
| 749 | |
| 750 | int |
| 751 | ionic_rx_qcq_alloc(struct ionic_lif *lif, uint32_t socket_id, uint32_t index, |
no test coverage detected