MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ngbe_free_sc_cluster

Function ngbe_free_sc_cluster

dpdk/drivers/net/ngbe/ngbe_rxtx.c:2053–2064  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

2051 * @m scattered cluster head
2052 */
2053static void
2054ngbe_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
2066static void
2067ngbe_rx_queue_release_mbufs(struct ngbe_rx_queue *rxq)

Callers 1

Calls 1

rte_pktmbuf_free_segFunction · 0.85

Tested by

no test coverage detected