* Handle IFF_* flags that require certain changes on the lagg port * if "status" is true, update ports flags respective to the lagg * if "status" is false, forcedly clear the flags set on port. */
| 1983 | * if "status" is false, forcedly clear the flags set on port. |
| 1984 | */ |
| 1985 | static int |
| 1986 | lagg_setflags(struct lagg_port *lp, int status) |
| 1987 | { |
| 1988 | int error, i; |
| 1989 | |
| 1990 | for (i = 0; lagg_pflags[i].flag; i++) { |
| 1991 | error = lagg_setflag(lp, lagg_pflags[i].flag, |
| 1992 | status, lagg_pflags[i].func); |
| 1993 | if (error) |
| 1994 | return (error); |
| 1995 | } |
| 1996 | return (0); |
| 1997 | } |
| 1998 | |
| 1999 | static int |
| 2000 | lagg_transmit_ethernet(struct ifnet *ifp, struct mbuf *m) |
no test coverage detected