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

Function if_link_state_change

freebsd/net/if.c:2252–2263  ·  view source on GitHub ↗

* Handle a change in the interface link state. To avoid LORs * between driver lock and upper layer locks, as well as possible * recursions, we post event to taskqueue, and all job * is done in static do_link_state_change(). */

Source from the content-addressed store, hash-verified

2250 * is done in static do_link_state_change().
2251 */
2252void
2253if_link_state_change(struct ifnet *ifp, int link_state)
2254{
2255 /* Return if state hasn't changed. */
2256 if (ifp->if_link_state == link_state)
2257 return;
2258
2259 ifp->if_link_state = link_state;
2260
2261 /* XXXGL: reference ifp? */
2262 taskqueue_enqueue(taskqueue_swi, &ifp->if_linktask);
2263}
2264
2265static void
2266do_link_state_change(void *arg, int pending)

Callers 15

cvm_oct_update_linkFunction · 0.85
cvm_oct_common_openFunction · 0.85
iflib_link_state_changeFunction · 0.85
vxlan_initFunction · 0.85
vxlan_teardown_lockedFunction · 0.85
epair_clone_createFunction · 0.85
epair_clone_destroyFunction · 0.85
gre_ioctlFunction · 0.85
gre_delete_tunnelFunction · 0.85

Calls 1

taskqueue_enqueueFunction · 0.85

Tested by

no test coverage detected