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

Function lagg_setflags

freebsd/net/if_lagg.c:1985–1997  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1983 * if "status" is false, forcedly clear the flags set on port.
1984 */
1985static int
1986lagg_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
1999static int
2000lagg_transmit_ethernet(struct ifnet *ifp, struct mbuf *m)

Callers 3

lagg_port_createFunction · 0.85
lagg_port_destroyFunction · 0.85
lagg_ioctlFunction · 0.85

Calls 1

lagg_setflagFunction · 0.85

Tested by

no test coverage detected