| 1554 | } |
| 1555 | |
| 1556 | static inline struct mbuf * |
| 1557 | mbufq_dequeue(struct mbufq *mq) |
| 1558 | { |
| 1559 | struct mbuf *m; |
| 1560 | |
| 1561 | m = STAILQ_FIRST(&mq->mq_head); |
| 1562 | if (m) { |
| 1563 | STAILQ_REMOVE_HEAD(&mq->mq_head, m_stailqpkt); |
| 1564 | m->m_nextpkt = NULL; |
| 1565 | mq->mq_len--; |
| 1566 | } |
| 1567 | return (m); |
| 1568 | } |
| 1569 | |
| 1570 | static inline void |
| 1571 | mbufq_prepend(struct mbufq *mq, struct mbuf *m) |
no outgoing calls
no test coverage detected