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

Function trunk_destroy

freebsd/net/if_vlan.c:557–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555#endif /* !VLAN_ARRAY */
556
557static void
558trunk_destroy(struct ifvlantrunk *trunk)
559{
560 VLAN_XLOCK_ASSERT();
561
562 vlan_freehash(trunk);
563 trunk->parent->if_vlantrunk = NULL;
564 TRUNK_LOCK_DESTROY(trunk);
565 if_rele(trunk->parent);
566 free(trunk, M_VLAN);
567}
568
569/*
570 * Program our multicast filter. What we're actually doing is

Callers 1

vlan_unconfig_lockedFunction · 0.85

Calls 3

vlan_freehashFunction · 0.85
if_releFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected