| 375 | } |
| 376 | |
| 377 | static __inline void |
| 378 | drbr_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 | |
| 390 | static __inline void |
| 391 | drbr_free(struct buf_ring *br, struct malloc_type *type) |
no test coverage detected