FreeBSD Bugzilla – Attachment 208604 Details for
Bug 241489
netmap + if_vlan panics related to 'Widen NET_EPOCH coverage' work (r353292)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
netmap_epoch_fix.diff (text/plain), 667 bytes, created by
Aleksandr Fedorov
on 2019-10-26 10:27:38 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Aleksandr Fedorov
Created:
2019-10-26 10:27:38 UTC
Size:
667 bytes
patch
obsolete
>Index: sys/dev/netmap/netmap_freebsd.c >=================================================================== >--- sys/dev/netmap/netmap_freebsd.c (revision 354113) >+++ sys/dev/netmap/netmap_freebsd.c (working copy) >@@ -420,6 +420,7 @@ > { > int ret; > u_int len = a->len; >+ struct epoch_tracker et; > struct ifnet *ifp = a->ifp; > struct mbuf *m = a->m; > >@@ -453,9 +454,11 @@ > M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE); > m->m_pkthdr.flowid = a->ring_nr; > m->m_pkthdr.rcvif = ifp; /* used for tx notification */ >+ NET_EPOCH_ENTER(et); > CURVNET_SET(ifp->if_vnet); > ret = NA(ifp)->if_transmit(ifp, m); > CURVNET_RESTORE(); >+ NET_EPOCH_EXIT(et); > return ret ? -1 : 0; > } >
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 241489
:
208604
|
208617