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

Function drbr_flush

freebsd/net/ifq.h:377–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static __inline void
378drbr_flush(struct ifnet *ifp, struct buf_ring *br)
379{
380 struct mbuf *m;
381
382#ifdef ALTQ
383 if (ifp != NULL && ALTQ_IS_ENABLED(&ifp->if_snd))
384 IFQ_PURGE(&ifp->if_snd);
385#endif
386 while ((m = (struct mbuf *)buf_ring_dequeue_sc(br)) != NULL)
387 m_freem(m);
388}
389
390static __inline void
391drbr_free(struct buf_ring *br, struct malloc_type *type)

Callers 1

drbr_freeFunction · 0.85

Calls 2

buf_ring_dequeue_scFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected