FreeBSD Bugzilla – Attachment 201036 Details for
Bug 234846
[lagg] race condition when adding port
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
use LAGG_PORT_DISABLED for a port until it fully added
if_lagg.c.diff (text/plain), 585 bytes, created by
Eugene Grosbein
on 2019-01-11 18:29:26 UTC
(
hide
)
Description:
use LAGG_PORT_DISABLED for a port until it fully added
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2019-01-11 18:29:26 UTC
Size:
585 bytes
patch
obsolete
>Index: sys/net/if_lagg.c >=================================================================== >--- sys/net/if_lagg.c (revision 342241) >+++ sys/net/if_lagg.c (working copy) >@@ -669,6 +669,7 @@ lagg_port_create(struct lagg_softc *sc, > } > > lp = malloc(sizeof(struct lagg_port), M_DEVBUF, M_WAITOK|M_ZERO); >+ lp->lp_flags = LAGG_PORT_DISABLED; > lp->lp_softc = sc; > > /* Check if port is a stacked lagg */ >@@ -762,6 +763,7 @@ lagg_port_create(struct lagg_softc *sc, > return (error); > } > >+ lp->lp_flags &= ~LAGG_PORT_DISABLED; > LAGG_WUNLOCK(sc); > > /* Update lagg capabilities */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234846
:
201036
|
201200
|
201203
|
201340