| 1543 | } |
| 1544 | |
| 1545 | static inline int |
| 1546 | mbufq_enqueue(struct mbufq *mq, struct mbuf *m) |
| 1547 | { |
| 1548 | |
| 1549 | if (mbufq_full(mq)) |
| 1550 | return (ENOBUFS); |
| 1551 | STAILQ_INSERT_TAIL(&mq->mq_head, m, m_stailqpkt); |
| 1552 | mq->mq_len++; |
| 1553 | return (0); |
| 1554 | } |
| 1555 | |
| 1556 | static inline struct mbuf * |
| 1557 | mbufq_dequeue(struct mbufq *mq) |
no test coverage detected