| 6913 | } |
| 6914 | |
| 6915 | static void |
| 6916 | iflib_debugnet_event(if_t ifp, enum debugnet_ev event) |
| 6917 | { |
| 6918 | if_ctx_t ctx; |
| 6919 | if_softc_ctx_t scctx; |
| 6920 | iflib_fl_t fl; |
| 6921 | iflib_rxq_t rxq; |
| 6922 | int i, j; |
| 6923 | |
| 6924 | ctx = if_getsoftc(ifp); |
| 6925 | scctx = &ctx->ifc_softc_ctx; |
| 6926 | |
| 6927 | switch (event) { |
| 6928 | case DEBUGNET_START: |
| 6929 | for (i = 0; i < scctx->isc_nrxqsets; i++) { |
| 6930 | rxq = &ctx->ifc_rxqs[i]; |
| 6931 | for (j = 0; j < rxq->ifr_nfl; j++) { |
| 6932 | fl = rxq->ifr_fl; |
| 6933 | fl->ifl_zone = m_getzone(fl->ifl_buf_size); |
| 6934 | } |
| 6935 | } |
| 6936 | iflib_no_tx_batch = 1; |
| 6937 | break; |
| 6938 | default: |
| 6939 | break; |
| 6940 | } |
| 6941 | } |
| 6942 | |
| 6943 | static int |
| 6944 | iflib_debugnet_transmit(if_t ifp, struct mbuf *m) |
nothing calls this directly
no test coverage detected