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

Function lagg_lacp_start

freebsd/net/if_lagg.c:2583–2598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2581}
2582
2583static int
2584lagg_lacp_start(struct lagg_softc *sc, struct mbuf *m)
2585{
2586 struct lagg_port *lp;
2587 int err;
2588
2589 lp = lacp_select_tx_port(sc, m, &err);
2590 if (lp == NULL) {
2591 if_inc_counter(sc->sc_ifp, IFCOUNTER_OERRORS, 1);
2592 m_freem(m);
2593 return (err);
2594 }
2595
2596 /* Send mbuf */
2597 return (lagg_enqueue(lp->lp_ifp, m));
2598}
2599
2600static struct mbuf *
2601lagg_lacp_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m)

Callers

nothing calls this directly

Calls 4

lacp_select_tx_portFunction · 0.85
if_inc_counterFunction · 0.85
lagg_enqueueFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected