| 712 | } |
| 713 | |
| 714 | static uint64_t |
| 715 | ionic_rx_rearm_data(struct ionic_lif *lif) |
| 716 | { |
| 717 | struct rte_mbuf rxm; |
| 718 | |
| 719 | memset(&rxm, 0, sizeof(rxm)); |
| 720 | |
| 721 | rte_mbuf_refcnt_set(&rxm, 1); |
| 722 | rxm.data_off = RTE_PKTMBUF_HEADROOM; |
| 723 | rxm.nb_segs = 1; |
| 724 | rxm.port = lif->port_id; |
| 725 | |
| 726 | rte_compiler_barrier(); |
| 727 | |
| 728 | RTE_BUILD_BUG_ON(sizeof(rxm.rearm_data[0]) != sizeof(uint64_t)); |
| 729 | return rxm.rearm_data[0]; |
| 730 | } |
| 731 | |
| 732 | static uint64_t |
| 733 | ionic_rx_seg_rearm_data(struct ionic_lif *lif) |
no test coverage detected