| 316 | } while (0) |
| 317 | |
| 318 | static __inline int |
| 319 | drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m) |
| 320 | { |
| 321 | int error = 0; |
| 322 | |
| 323 | #ifdef ALTQ |
| 324 | if (ALTQ_IS_ENABLED(&ifp->if_snd)) { |
| 325 | IFQ_ENQUEUE(&ifp->if_snd, m, error); |
| 326 | if (error) |
| 327 | if_inc_counter((ifp), IFCOUNTER_OQDROPS, 1); |
| 328 | return (error); |
| 329 | } |
| 330 | #endif |
| 331 | error = buf_ring_enqueue(br, m); |
| 332 | if (error) |
| 333 | m_freem(m); |
| 334 | |
| 335 | return (error); |
| 336 | } |
| 337 | |
| 338 | static __inline void |
| 339 | drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) |
no test coverage detected