| 356 | MODULE_DEPEND(if_lagg, if_infiniband, 1, 1, 1); |
| 357 | |
| 358 | static void |
| 359 | lagg_proto_attach(struct lagg_softc *sc, lagg_proto pr) |
| 360 | { |
| 361 | |
| 362 | LAGG_XLOCK_ASSERT(sc); |
| 363 | KASSERT(sc->sc_proto == LAGG_PROTO_NONE, ("%s: sc %p has proto", |
| 364 | __func__, sc)); |
| 365 | |
| 366 | if (sc->sc_ifflags & IFF_DEBUG) |
| 367 | if_printf(sc->sc_ifp, "using proto %u\n", pr); |
| 368 | |
| 369 | if (lagg_protos[pr].pr_attach != NULL) |
| 370 | lagg_protos[pr].pr_attach(sc); |
| 371 | sc->sc_proto = pr; |
| 372 | } |
| 373 | |
| 374 | static void |
| 375 | lagg_proto_detach(struct lagg_softc *sc) |
no test coverage detected