| 396 | } |
| 397 | |
| 398 | static __inline struct mbuf * |
| 399 | drbr_dequeue(struct ifnet *ifp, struct buf_ring *br) |
| 400 | { |
| 401 | #ifdef ALTQ |
| 402 | struct mbuf *m; |
| 403 | |
| 404 | if (ifp != NULL && ALTQ_IS_ENABLED(&ifp->if_snd)) { |
| 405 | IFQ_DEQUEUE(&ifp->if_snd, m); |
| 406 | return (m); |
| 407 | } |
| 408 | #endif |
| 409 | return ((struct mbuf *)buf_ring_dequeue_sc(br)); |
| 410 | } |
| 411 | |
| 412 | static __inline void |
| 413 | drbr_advance(struct ifnet *ifp, struct buf_ring *br) |
no test coverage detected