| 356 | } |
| 357 | |
| 358 | static __inline struct mbuf * |
| 359 | drbr_peek(struct ifnet *ifp, struct buf_ring *br) |
| 360 | { |
| 361 | #ifdef ALTQ |
| 362 | struct mbuf *m; |
| 363 | if (ifp != NULL && ALTQ_IS_ENABLED(&ifp->if_snd)) { |
| 364 | /* |
| 365 | * Pull it off like a dequeue |
| 366 | * since drbr_advance() does nothing |
| 367 | * for altq and drbr_putback() will |
| 368 | * use the old prepend function. |
| 369 | */ |
| 370 | IFQ_DEQUEUE(&ifp->if_snd, m); |
| 371 | return (m); |
| 372 | } |
| 373 | #endif |
| 374 | return ((struct mbuf *)buf_ring_peek_clear_sc(br)); |
| 375 | } |
| 376 | |
| 377 | static __inline void |
| 378 | drbr_flush(struct ifnet *ifp, struct buf_ring *br) |
nothing calls this directly
no test coverage detected