MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lagg_lb_attach

Function lagg_lb_attach

freebsd/net/if_lagg.c:2433–2446  ·  view source on GitHub ↗

* Loadbalancing */

Source from the content-addressed store, hash-verified

2431 * Loadbalancing
2432 */
2433static void
2434lagg_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
2448static void
2449lagg_lb_detach(struct lagg_softc *sc)

Callers

nothing calls this directly

Calls 3

mallocFunction · 0.85
m_ether_tcpip_hash_initFunction · 0.85
lagg_lb_port_createFunction · 0.85

Tested by

no test coverage detected