Lines Matching defs:event_code
669 static void interface_link_event(struct ifnet * ifp, u_long event_code);
1594 int event_code = 0;
1614 event_code = (ifb->ifb_active_lag == NULL)
1619 ifb->ifb_last_link_event = event_code;
1622 event_code = (ifb->ifb_active_lag == NULL)
1625 if (event_code != ifb->ifb_last_link_event) {
1631 ifb->ifb_last_link_event = event_code;
1638 interface_link_event(bond_ifp, event_code);
1819 int event_code = 0;
1824 event_code = (p->po_bond->ifb_active_lag == NULL)
1829 p->po_bond->ifb_last_link_event = event_code;
1832 event_code = (p->po_bond->ifb_active_lag == NULL)
1835 if (event_code != p->po_bond->ifb_last_link_event) {
1841 p->po_bond->ifb_last_link_event = event_code;
1847 interface_link_event(bond_ifp, event_code);
2000 int event_code = 0;
2187 event_code = (ifb->ifb_active_lag == NULL)
2190 ifb->ifb_last_link_event = event_code;
2197 ifb->ifb_last_link_event = event_code = KEV_DL_LINK_ON;
2208 if (event_code != 0) {
2209 interface_link_event(ifp, event_code);
2274 int event_code = 0;
2335 event_code = (ifb->ifb_active_lag == NULL)
2338 ifb->ifb_last_link_event = event_code;
2346 ifb->ifb_last_link_event = event_code = KEV_DL_LINK_OFF;
2400 if (event_code != 0) {
2401 interface_link_event(ifp, event_code);
2468 int event_code = 0;
2497 event_code = (ifb->ifb_active_lag == NULL)
2503 event_code = (ifb->ifb_distributing_count == 0)
2507 ifb->ifb_last_link_event = event_code;
2514 if (event_code != 0) {
2515 interface_link_event(ifp, event_code);
2978 int event_code = 0;
2989 switch (event->event_code) {
3007 switch (event->event_code) {
3022 event_code = (ifb->ifb_active_lag == NULL)
3027 ifb->ifb_last_link_event = event_code;
3030 event_code = (ifb->ifb_active_lag == NULL)
3033 if (event_code != ifb->ifb_last_link_event) {
3039 ifb->ifb_last_link_event = event_code;
3050 event_code = KEV_DL_LINK_ON;
3054 event_code = KEV_DL_LINK_OFF;
3056 if (event_code != 0 && event_code != ifb->ifb_last_link_event) {
3058 ifb->ifb_last_link_event = event_code;
3064 interface_link_event(bond_ifp, event_code);
3070 interface_link_event(struct ifnet * ifp, u_long event_code)
3082 event.header.event_code = event_code;