| 6941 | } |
| 6942 | |
| 6943 | static int |
| 6944 | iflib_debugnet_transmit(if_t ifp, struct mbuf *m) |
| 6945 | { |
| 6946 | if_ctx_t ctx; |
| 6947 | iflib_txq_t txq; |
| 6948 | int error; |
| 6949 | |
| 6950 | ctx = if_getsoftc(ifp); |
| 6951 | if ((if_getdrvflags(ifp) & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) != |
| 6952 | IFF_DRV_RUNNING) |
| 6953 | return (EBUSY); |
| 6954 | |
| 6955 | txq = &ctx->ifc_txqs[0]; |
| 6956 | error = iflib_encap(txq, &m); |
| 6957 | if (error == 0) |
| 6958 | (void)iflib_txd_db_check(txq, true); |
| 6959 | return (error); |
| 6960 | } |
| 6961 | |
| 6962 | static int |
| 6963 | iflib_debugnet_poll(if_t ifp, int count) |
nothing calls this directly
no test coverage detected