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

Function lagg_clrmulti

freebsd/net/if_lagg.c:1918–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1916}
1917
1918static int
1919lagg_clrmulti(struct lagg_port *lp)
1920{
1921 struct lagg_mc *mc;
1922
1923 LAGG_XLOCK_ASSERT(lp->lp_softc);
1924 while ((mc = SLIST_FIRST(&lp->lp_mc_head)) != NULL) {
1925 SLIST_REMOVE(&lp->lp_mc_head, mc, lagg_mc, mc_entries);
1926 if (mc->mc_ifma && lp->lp_detaching == 0)
1927 if_delmulti_ifma(mc->mc_ifma);
1928 free(mc, M_LAGG);
1929 }
1930 return (0);
1931}
1932
1933static int
1934lagg_setcaps(struct lagg_port *lp, int cap)

Callers 2

lagg_port_destroyFunction · 0.85
lagg_ioctlFunction · 0.85

Calls 2

if_delmulti_ifmaFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected