* Loadbalancing */
| 2431 | * Loadbalancing |
| 2432 | */ |
| 2433 | static void |
| 2434 | lagg_lb_attach(struct lagg_softc *sc) |
| 2435 | { |
| 2436 | struct lagg_port *lp; |
| 2437 | struct lagg_lb *lb; |
| 2438 | |
| 2439 | LAGG_XLOCK_ASSERT(sc); |
| 2440 | lb = malloc(sizeof(struct lagg_lb), M_LAGG, M_WAITOK | M_ZERO); |
| 2441 | lb->lb_key = m_ether_tcpip_hash_init(); |
| 2442 | sc->sc_psc = lb; |
| 2443 | |
| 2444 | CK_SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) |
| 2445 | lagg_lb_port_create(lp); |
| 2446 | } |
| 2447 | |
| 2448 | static void |
| 2449 | lagg_lb_detach(struct lagg_softc *sc) |
nothing calls this directly
no test coverage detected