* Active failover */
| 2385 | * Active failover |
| 2386 | */ |
| 2387 | static int |
| 2388 | lagg_fail_start(struct lagg_softc *sc, struct mbuf *m) |
| 2389 | { |
| 2390 | struct lagg_port *lp; |
| 2391 | |
| 2392 | /* Use the master port if active or the next available port */ |
| 2393 | if ((lp = lagg_link_active(sc, sc->sc_primary)) == NULL) { |
| 2394 | if_inc_counter(sc->sc_ifp, IFCOUNTER_OERRORS, 1); |
| 2395 | m_freem(m); |
| 2396 | return (ENETDOWN); |
| 2397 | } |
| 2398 | |
| 2399 | /* Send mbuf */ |
| 2400 | return (lagg_enqueue(lp->lp_ifp, m)); |
| 2401 | } |
| 2402 | |
| 2403 | static struct mbuf * |
| 2404 | lagg_fail_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) |
nothing calls this directly
no test coverage detected