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

Function drbr_enqueue

freebsd/net/ifq.h:318–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316} while (0)
317
318static __inline int
319drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m)
320{
321 int error = 0;
322
323#ifdef ALTQ
324 if (ALTQ_IS_ENABLED(&ifp->if_snd)) {
325 IFQ_ENQUEUE(&ifp->if_snd, m, error);
326 if (error)
327 if_inc_counter((ifp), IFCOUNTER_OQDROPS, 1);
328 return (error);
329 }
330#endif
331 error = buf_ring_enqueue(br, m);
332 if (error)
333 m_freem(m);
334
335 return (error);
336}
337
338static __inline void
339drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new)

Callers 1

drbr_enqueue_drvFunction · 0.85

Calls 3

if_inc_counterFunction · 0.85
buf_ring_enqueueFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected