Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ieee8023ad_lacp.c
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | lacp_port_create(struct lagg_port *lgp) | ||||
LIST_INSERT_HEAD(&lsc->lsc_ports, lp, lp_next); | LIST_INSERT_HEAD(&lsc->lsc_ports, lp, lp_next); | ||||
lacp_fill_actorinfo(lp, &lp->lp_actor); | lacp_fill_actorinfo(lp, &lp->lp_actor); | ||||
lacp_fill_markerinfo(lp, &lp->lp_marker); | lacp_fill_markerinfo(lp, &lp->lp_marker); | ||||
lp->lp_state = LACP_STATE_ACTIVITY; | lp->lp_state = LACP_STATE_ACTIVITY; | ||||
lp->lp_aggregator = NULL; | lp->lp_aggregator = NULL; | ||||
lacp_sm_rx_set_expired(lp); | lacp_sm_rx_set_expired(lp); | ||||
LACP_UNLOCK(lsc); | LACP_UNLOCK(lsc); | ||||
lacp_linkstate(lgp); | |||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
lacp_port_destroy(struct lagg_port *lgp) | lacp_port_destroy(struct lagg_port *lgp) | ||||
{ | { | ||||
struct lacp_port *lp = LACP_PORT(lgp); | struct lacp_port *lp = LACP_PORT(lgp); | ||||
▲ Show 20 Lines • Show All 1,601 Lines • Show Last 20 Lines |