* ngbe_free_sc_cluster - free the not-yet-completed scattered cluster * * The "next" pointer of the last segment of (not-yet-completed) RSC clusters * in the sw_sc_ring is not set to NULL but rather points to the next * mbuf of this RSC aggregation (that has not been completed yet and still * resides on the HW ring). So, instead of calling for rte_pktmbuf_free() we * will just free first "nb
| 2051 | * @m scattered cluster head |
| 2052 | */ |
| 2053 | static void |
| 2054 | ngbe_free_sc_cluster(struct rte_mbuf *m) |
| 2055 | { |
| 2056 | uint16_t i, nb_segs = m->nb_segs; |
| 2057 | struct rte_mbuf *next_seg; |
| 2058 | |
| 2059 | for (i = 0; i < nb_segs; i++) { |
| 2060 | next_seg = m->next; |
| 2061 | rte_pktmbuf_free_seg(m); |
| 2062 | m = next_seg; |
| 2063 | } |
| 2064 | } |
| 2065 | |
| 2066 | static void |
| 2067 | ngbe_rx_queue_release_mbufs(struct ngbe_rx_queue *rxq) |
no test coverage detected