FreeBSD Bugzilla – Attachment 201200 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]
Naive initial cut at a patch
lacp.patch (text/plain), 1.27 KB, created by
Stephen Hurd
on 2019-01-16 21:12:48 UTC
(
hide
)
Description:
Naive initial cut at a patch
Filename:
MIME Type:
Creator:
Stephen Hurd
Created:
2019-01-16 21:12:48 UTC
Size:
1.27 KB
patch
obsolete
>Index: sys/net/ieee8023ad_lacp.c >=================================================================== >--- sys/net/ieee8023ad_lacp.c (revision 340408) >+++ sys/net/ieee8023ad_lacp.c (working copy) >@@ -566,7 +566,6 @@ > lp->lp_aggregator = NULL; > lacp_sm_rx_set_expired(lp); > LACP_UNLOCK(lsc); >- lacp_linkstate(lgp); > > return (0); > } >Index: sys/net/if_lagg.c >=================================================================== >--- sys/net/if_lagg.c (revision 340408) >+++ sys/net/if_lagg.c (working copy) >@@ -759,7 +759,6 @@ > ifp->if_index)) > break; > } >- LAGG_RUNLOCK(); > if (tlp != NULL) > CK_SLIST_INSERT_AFTER(tlp, lp, lp_entries); > else >@@ -774,10 +773,13 @@ > lagg_port_destroy(lp, 0); > if (oldmtu != -1) > (*ifp->if_ioctl)(ifp, SIOCSIFMTU, (caddr_t)&ifr); >+ LAGG_RUNLOCK(); > return (error); > } >+ LAGG_RUNLOCK(); > > /* Update lagg capabilities */ >+ lagg_proto_linkstate(sc, lp); > lagg_capabilities(sc); > lagg_linkstate(sc); > >@@ -828,6 +830,7 @@ > > LAGG_XLOCK_ASSERT(sc); > >+ LAGG_RLOCK(); > if (rundelport) > lagg_proto_delport(sc, lp); > >@@ -850,6 +853,7 @@ > /* Finally, remove the port from the lagg */ > CK_SLIST_REMOVE(&sc->sc_ports, lp, lagg_port, lp_entries); > sc->sc_count--; >+ LAGG_RUNLOCK(); > > /* Update the primary interface */ > if (lp == sc->sc_primary) {
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
Working