| 1916 | } |
| 1917 | |
| 1918 | static int |
| 1919 | lagg_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 | |
| 1933 | static int |
| 1934 | lagg_setcaps(struct lagg_port *lp, int cap) |
no test coverage detected